apexcharts-card: `stacked: true` not working anymore

Checklist

  • I updated the card to the latest version available
  • I cleared the cache of my browser
  • I verified that I’m really running the lastest version in my browser console
  • I checked if there is another issue opened with the same problem

Describe the bug

Stacking bar charts is not working anymore

Version of the card Version: v2.1.2 (i’ve switched to it yesterday through HACS)

To Reproduce This is the configuration I used:

type: custom:apexcharts-card
graph_span: 12months
span:
  end: month
cache: true
update_interval: 24h
stacked: true
header:
  show: true
  title: Suivi énergétique H&T (kWh/month)
  standard_format: true
apex_config:
  chart:
    height: 400px
yaxis:
  - decimals: 0
    min: -900
    max: 400
    apex_config:
      tickAmount: 13
      forceNiceScale: true
      axisTicks:
        show: false
all_series_config:
  type: column
  unit: kWh
  float_precision: 2
  show:
    legend_value: false
  statistics:
    type: sum
    period: month
    align: middle
  group_by:
    func: diff
    duration: 1month
    start_with_last: true
    fill: last
series:
  - entity: sensor.circuit_climatisation_energy
    name: PAC
  - entity: sensor.chauffage_energy
    name: Chauffage
  - entity: sensor.deshumidificateur_salon_energy
    name: Déshumidificateur Salon
  - entity: sensor.deshumidificateur_chambre_energy
    name: Déshumidificateur Chambre
  - entity: sensor.deshumidificateur_etage_energy
    name: Déshumidificateur Étage
  - entity: sensor.home_consumed_energy
    name: Consommation totale
    color: lightgrey
    invert: true

Screenshots

image image

Expected behavior These bars were stacked before

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 22

Most upvoted comments

Hi all

same here. Switching back to 2.0.4 & everything runs smooth.

With 2.1.2, removing the following solves the problem (ie: stack is properly working):

yaxis:
  - max: auto

Moving the yaxis setting under apex_config section makes stack working, but yaxis not working (max is definitely not “auto” - but seems set to be capped to 10, while scale should goes up around 3500/4000).

Not fixed… Did the dev pass away?

4 Feb 2025 13:00:25 github-actions[bot] @.***>:

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.

— Reply to this email directly, view it on GitHub[https://github.com/RomRider/apexcharts-card/issues/746#issuecomment-2632623065], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AA5UBEEEBJ4OOMMRH4K2JH32OAQ4DAVCNFSM6AAAAABLUBC5DSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMZSGYZDGMBWGU]. You are receiving this because you commented. [Tracking image][https://github.com/notifications/beacon/AA5UBECFDWBB7I274M3PLI32OAQ4DA5CNFSM6AAAAABLUBC5DSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTU45KR5S.gif]

By the powers vested in me as the guardian of unresolved discussions, I hereby banish thee, stale bot, to the void of irrelevance. Thou shalt not close this issue, for its time has not yet come!

Aw damn… I only just updated hoping the severe javascript lag would be fixed/improved but instead I lost my stacks Was successfully mixing stacked and unstacked bars, areas and lines image Now nothing stacks… image