apexcharts-card: color_threshold missing since v2.1.2

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 Experimental color_threshold is not being rendered, graphs just come out grey.

Version of the card Version: 2.1.2

To Reproduce This is the configuration I used:

type: custom:apexcharts-card
experimental:
  color_threshold: true
header:
  show: true
  title: Next agile rates
stacked: false
graph_span: 23h
span:
  start: day
  offset: +24h
series:
  - entity: event.octopus_energy_electricity_REDACTED_next_day_rates
    type: column
    curve: stepline
    name: p/kWh
    group_by:
      func: first
      duration: 5m
    extend_to: false
    stroke_width: 3
    show:
      extremas: time
    color_threshold:
      - value: -100
        color: cyan
      - value: 0
        color: green
      - value: 20
        color: orange
      - value: 30
        color: red
      - value: 40
        color: purple
    data_generator: |
      return entity.attributes.rates.map((entry) => {
         return [new Date(entry.start), entry.value_inc_vat*100];
       });

Screenshots image

Expected behavior Until this week, when I upgraded to HA 2024.7.2 and apexcharts v2.1.2 the columns were coloured according to the thresholds, now they are all grey.

Desktop (please complete the following information):

  • Browser Firefox (Linux)
  • Version 127

Smartphone (please complete the following information):

  • Device: Samsung
  • OS: Android 14
  • Browser Firefox
  • Version 128

Additional context The headers appear to be coloured correctly as the entity state changes over the day, but the chart remains grey.

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 4
  • Comments: 21

Most upvoted comments

Any update on this issue? Still using the v2.0.4 version in stead of v2.1.2 because of this. Last release has been a while. Did not see a solution yet. Issue is just flagged stale, how to remove this stale label?

I’d love to get some colours back in my charts 😦

Me too…

Any update on this?

+1 reverting to 2.0.4