RomRider / apexcharts-card

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

Chart size bug #603

Open donagrejja opened 12 months ago

donagrejja commented 12 months ago

Checklist

Describe the bug When i refresh the browser initially it doesn't show the whole timeline but if i switch between tabs back and forth it shows correctly. Not actually sure this is a apexcharts-card bug or home assistant frontend bug.

Version of the card Version: 2.0.4

To Reproduce This is the configuration I used:

type: custom:apexcharts-card
graph_span: 24h
experimental:
  color_threshold: true
header:
  title: Electricity Price Total (24h)
  show: true
apex_config:
  yaxis:
    min: 0
hours_12: false
span:
  start: hour
  offset: '-9h'
now:
  show: true
series:
  - entity: sensor.nordpool_kwh_se2_sek_total
    type: column
    name: price
    data_generator: |
      return (entity.attributes.raw_today.map((start, index) => {
        return [new Date(start["start"]).getTime(), entity.attributes.raw_today[index]["value"]];
      })).concat(entity.attributes.raw_tomorrow.map((start, index) => {
        return [new Date(start["start"]).getTime(), entity.attributes.raw_tomorrow[index]["value"]];
      }));
    color_threshold:
      - value: 0
        color: green
      - value: 165
        color: yellow
      - value: 265
        color: orange
      - value: 365
        color: red
      - value: 465
        color: darkred

Screenshots After refresh/reload it looks like this. image After switching tabs back and forth it looks as it should again. image

Expected behavior Should display correctly even directly after browser refresh/reload

Desktop (please complete the following information):

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

donagrejja commented 10 months ago

This is still an issue for me using latest version of HA and this addon.

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

donagrejja commented 7 months ago

Still an issue.

michaelpiron commented 6 months ago

Same issue here: image

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

michaelpiron commented 4 months ago

Still an issue

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.

RomRider commented 2 months ago

What is the father card of those cards in your lovelace config ?

github-actions[bot] commented 4 days 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.