apexcharts-card icon indicating copy to clipboard operation
apexcharts-card copied to clipboard

Add support of grouped stacked bar charts

Open raldone01 opened this issue 1 year ago • 3 comments

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.

raldone01 avatar Feb 26 '24 20:02 raldone01

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] avatar Apr 27 '24 02:04 github-actions[bot]

Not stale...

raldone01 avatar Apr 27 '24 08:04 raldone01

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] avatar Jun 27 '24 02:06 github-actions[bot]

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

georgepauna avatar Jul 04 '24 18:07 georgepauna

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

RomRider avatar Jul 04 '24 18:07 RomRider

: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:

github-actions[bot] avatar Jul 09 '24 11:07 github-actions[bot]