RomRider / apexcharts-card

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

Add support of grouped stacked bar charts #673

Closed raldone01 closed 1 week ago

raldone01 commented 4 months ago

image

I plot the power consumption of my tracked devices daily, monthly, ... I would love to add another bar next to the stacked bar with my total consumption so I can get an idea of how much energy usage I am not tracking.

Apex Charts should already support this with stacked groups. A older issue also mentioned this #550.

Describe the solution you'd like Support for grouped stacked columns would be splendid.

Describe alternatives you've considered I tried two charts next to each other but its just not the same. The y axis scale is not the same.

github-actions[bot] commented 2 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.

raldone01 commented 2 months ago

Not stale...

github-actions[bot] commented 2 weeks 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.

georgepauna commented 1 week ago

See this rejected pull request (I have the exact same scenario): https://github.com/RomRider/apexcharts-card/pull/711

Meanwhile you can use a different Y axis ID for the total and you'll get what you want: IMPORTANT: You must have a different chart style for total so that this works (e.g. use bars for current series and line or area for total)

image

RomRider commented 1 week ago

Grouped stacked colums are not supported on time series in apexcharts.js.

github-actions[bot] commented 1 week ago

:tada: This issue has been resolved in version 2.1.0-dev.4 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: