RomRider / apexcharts-card

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

Stacked bar chart issues when hiding series #254

Open wapebira opened 2 years ago

wapebira commented 2 years ago

Checklist

Describe the bug This is the chart with all series visible. Notice "blue" series is 0. And the info panel is on the bar image

If I click on legend to hide the blue series, this is what it looks like. The orange series disappears. image But if I hover the mouse over the legend, we can see the orange is behind the purple and red image

If I hide the first series (orange), this is what it looks. notice It show "null" value for all the series and the info window is not over the bar anymore. It stays near the axis. image

If I hide the red series, notice how the orange pops on top of purple image

When I hover the mouse over the legend, we can see orange series behind the purple series. image

Besides the above rendering issues, looks like if hiding first and third series, it causes the info window to stick to axis. When I hide second and forth series, the info panel is displayed correctly near the bar.

Version of the card Version: 1.10

To Reproduce This is the configuration I used:

update_interval: 120s
stacked: true
all_series_config:
  type: column
  group_by:
    func: max
header:
  show: true
  title: ApexCharts-Card
  show_states: true
  colorize_states: true
series:
  - entity: sensor.15min_hq_w_winter_op_1st_tier
  - entity: sensor.15min_hq_w_winter_op_2nd_tier
  - entity: sensor.15min_hq_w_winter_p_1st_tier
  - entity: sensor.15min_hq_w_winter_p_2nd_tier
  - entity: sensor.15min_hq_w_winter_p_event

Desktop (please complete the following information):

RomRider commented 2 years ago

Unfortunately, there's nothing I can do. This is a bug in the library I use.