Skip to content

Forecast solar chart: fix duplicate Y-axis labels for small PV systems - #33307

Draft
github-actions[bot] wants to merge 1 commit into
masterfrom
fix/issue-33306
Draft

Forecast solar chart: fix duplicate Y-axis labels for small PV systems#33307
github-actions[bot] wants to merge 1 commit into
masterfrom
fix/issue-33306

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

fixes #33306

The Y-axis label formatter in the forecast solar chart always converted values to kW with 0 decimal digits. For systems with a peak forecast well under 1 kW (e.g. balcony PV), every tick (0, mid, max) rounds to "0 kW", making the axis meaningless.

Fix: switch the axis label unit to W when the combined forecast peak (combinedMax) is below 1000 W, mirroring the same < 1 kW threshold already used for the same purpose in GroupChart.vue.

  • assets/js/components/Forecast/SolarChart.vue

🤖 Generated with Claude Code

The axis label formatter always converted to kW with 0 decimals, so
for a peak forecast under 1 kW every tick rounded to "0". Switch to
W below a 1 kW peak, mirroring the same threshold already used in
GroupChart.vue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Forecast chart: Y-axis shows "0" twice for small PV systems

0 participants