apexcharts-card icon indicating copy to clipboard operation
apexcharts-card copied to clipboard

Chart size bug

Open donagrejja opened this issue 1 year ago • 9 comments

Checklist

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

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):

  • Browser: Microsoft Edge
  • Version: 116.0.1938.62 (Official build) (64-bit)

donagrejja avatar Sep 13 '23 07:09 donagrejja

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] avatar Nov 13 '23 02:11 github-actions[bot]

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

donagrejja avatar Nov 13 '23 08:11 donagrejja

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] avatar Jan 13 '24 02:01 github-actions[bot]

Still an issue.

donagrejja avatar Jan 13 '24 02:01 donagrejja

Same issue here: image

michaelpiron avatar Feb 29 '24 08:02 michaelpiron

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] avatar Apr 30 '24 02:04 github-actions[bot]

Still an issue

michaelpiron avatar Apr 30 '24 05:04 michaelpiron

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] avatar Jun 30 '24 02:06 github-actions[bot]

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

RomRider avatar Jul 05 '24 09:07 RomRider