RomRider / apexcharts-card

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

Entities with unchanging statistics stops the page from loading on Firefox #734

Open tomlut opened 4 months ago

tomlut commented 4 months ago

Checklist

Describe the bug If you attempt to graph an entity using the statistics option and the entity has not changed for the period of time displayed then Firefox browser hangs. Google chrome fares a little better, it slows but eventually loads an empty graph.

Version of the card Version: v2.1.2

To Reproduce This is the configuration I used:

type: custom:apexcharts-card
apex_config:
  chart:
    height: 100%
  dataLabels:
    background:
      enabled: false
    style:
      colors:
        - var(--primary-text-color)
graph_span: 24h
header:
  show: true
  show_states: true
  title: 12V DC Bus
yaxis:
  - id: left
    decimals: 3
    apex_config:
      forceNiceScale: true
series:
  - entity: sensor.12v_bus_voltage
    stroke_width: 2
    type: line
    curve: stepline
    color: rgb(192,192,192)
    statistics:
      type: mean
      period: 5minute
      align: middle
    yaxis_id: left
    float_precision: 2
    show:
      datalabels: false
      extremas: false
      name_in_header: false
    header_actions:
      tap_action:
        action: more-info

Screenshots If applicable, add screenshots to help explain your problem.

Untitled

Expected behavior The statistics to be displayed

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

github-actions[bot] commented 2 months 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.

tomlut commented 2 months ago

Bump.

github-actions[bot] commented 1 week 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.

tomlut commented 1 week ago

Still an issue 2024.11