RomRider / apexcharts-card

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

Negative values of "diff" only showing up in edit-mode #694

Closed FlorianWilk closed 4 days ago

FlorianWilk commented 2 months ago

Describe the bug

I have an apex-card which shows the differences in waterlevel of my cistern. Negative Bars when the water-level goes negative and positive bars when water comes in (when it rains). In EditMode everything looks perfect, but when i leave and finish editing the chart only shows the positive bars. I have cleaned my cache multiple times and also on other devices (companion App) i experience the same behaviour.

Version of the card 2.0.4

To Reproduce This is the configuration I used:

  - type: custom:apexcharts-card
    apex_config:
      chart:
        height: 200px
    graph_span: 1d
    experimental:
      color_threshold: true
    header:
      show: true
      title: Differenz
      show_states: false
    series:
      - entity: sensor.liquid_check_inhalt
        type: column
        name: Inhalt
        group_by:
          func: diff
          start_with_last: true
        color_threshold:
          - value: 0
            color: '#00af00'
            opacity: 1
          - value: 15
            color: '#00afff'

Screenshots Editmode: image

clicking "Done": image

Including the chart with the "raw water level" to show that there really is a decrease in water level at 4:37 image

Expected behavior It should also show the negative bar in "non editing mode"

Desktop (please complete the following information):

github-actions[bot] commented 2 weeks ago

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] commented 4 days ago

This issue was closed because it has been stalled for 10 days with no activity.