melvanderwal / HA-Amber-Electric-Usage-Charts

Usage charts in Home Assistant for Amber Electric pricing.
7 stars 2 forks source link

Bar charts no longer stacked with apex-charts v2.1.2 #3

Closed purcell-lab closed 1 month ago

purcell-lab commented 1 month ago

With the update to apex-charts v2.1.2, I find the bar charts are no longer on top of each other;

v2.1.2

image

Older version:

image

Any ideas how we can configure v2.1.2 to present the old style stack charts?

melvanderwal commented 1 month ago

Hi Mark.

Thanks for the example, I see what you mean. I'm travelling overseas for another week and I won't be able to look at it until I return, but I will do so.

melvanderwal commented 1 month ago

Hi @purcell-lab.

It's a simple fix. At Apex Charts 2.1, the series stack_group property was introduced. Just group your series using a common group name, for example: image

I'll add it to the code in the repo.

melvanderwal commented 1 month ago

stack_group added to example Apex Charts YAML file.