RomRider / apexcharts-card

📈 A Lovelace card to display advanced graphs and charts based on ApexChartsJS for Home Assistant
MIT License
1.16k stars 78 forks source link

Wrong Columns height on first y-axis when a second y-axis is defined #669

Closed man010 closed 4 months ago

man010 commented 7 months ago

Checklist

Describe the bug I have defined 6 stacked series on a first y-axis. As I wanted to display an additional information in the header (not in the chart), I have added a second y-axis with the follow series config :

and with this extra series, the height of some of the series on the first axis is wrong. As you see, the series « Buanderie » should have a value of 0.8kWh, while the column value seems to be around 0.2kWh

Here is the code of the y-axis and series (note the the second series is for the workaround of the other bug I reported yesterday, to get the y-axis automatically scaled with all the stacked values and not only the biggest one) : yaxis:

Version of the card Version:

To Reproduce This is the configuration I used:

Screenshots If applicable, add screenshots to help explain your problem.

Expected behavior A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

man010 commented 7 months ago

I answer to myself. This issue occurs when the series are not configured in the same order as the corresponding yaxis :

WORKING

yaxis :

NOT WORKING

yaxis :

stepir commented 7 months ago

Thanks - had exactly the same issue and found this thread

github-actions[bot] commented 5 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] commented 4 months ago

This issue was closed because it has been stalled for 10 days with no activity.