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

Graph sometimes not shown, blank box

Open breti opened this issue 3 years ago • 15 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 In Firefox on windows and android, the graph is sometimes not shown, only a blank box is rendered. There is no such issue in chrome or in the android companion app.

I've tried to create a simplified example of my lovelace pages to reproduce this issue, but I've not been successful. There's no such issue with simplified pages I've tried.

Version of the card Version: v1.9.0

To Reproduce This is the configuration I used:

type: custom:apexcharts-card
graph_span: 1d
all_series_config:
  stroke_width: 2
series:
  - entity: sensor.sz_ht_heizung_temperature
    name: Temperatur
    type: line
    yaxis_id: temp
  - entity: sensor.sz_ht_heizung_humidity
    name: Luftfeuchtigkeit
    type: line
    yaxis_id: hum
yaxis:
  - id: temp
    min: ~10
    max: ~30
    apex_config:
      tickAmount: 4
  - id: hum
    min: ~45
    max: ~65
    opposite: true
    apex_config:
      tickAmount: 4

Screenshots After loading/opening lovelace in firefox, the graph is shown:

Firefox_Screenshot_2021-07-30T10-54-24 639Z

It is still shown after switching between the pages of the same dashboard.

But it is not shown anymore after switching to another dashboard and back to the first one:

Firefox_Screenshot_2021-07-30T10-54-56 329Z

It's shown again after CTRL+R.

Expected behavior I'd expect to see the graph again.

Desktop (please complete the following information):

  • Browser: Firefox on windows
  • Version: 90.0.2

Smartphone (please complete the following information):

  • Device: Xiaomi Mi 9
  • OS: Android 10, MIUI 12.0.5
  • Browser: Firefox
  • Version: 90.1.2

Additional context Add any other context about the problem here.

breti avatar Jul 30 '21 11:07 breti

Uncaught (in promise) TypeError: this._hass is undefined

apexcharts-card.js:829:36325

kukulich avatar Aug 02 '21 15:08 kukulich

Do you have the same error as in the previous comment in the javascript console of the browser @breti?

RomRider avatar Aug 03 '21 15:08 RomRider

@RomRider I would expect it because I see the same behaviour described by @breti

Btw it's also in 1.10.0-dev.6

kukulich avatar Aug 03 '21 16:08 kukulich

It's not exactly the same message here, Please find my log attached.

FFlog.txt

breti avatar Aug 03 '21 16:08 breti

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 Sep 03 '21 02:09 github-actions[bot]

Not fixed yet.

breti avatar Sep 03 '21 05:09 breti

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 Oct 04 '21 02:10 github-actions[bot]

Not fixed yet.

breti avatar Oct 04 '21 06:10 breti

:tada: This issue has been resolved in version 1.10.0-dev.7 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Oct 24 '21 16:10 github-actions[bot]

:tada: This issue has been resolved in version 1.10.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Oct 24 '21 17:10 github-actions[bot]

Hmm... unfortunately I can't confirm this to be fixed :-/ Behaviour has changed a little bit:

grafik

breti avatar Oct 25 '21 06:10 breti

Please share the logs, I can't do anything without it

RomRider avatar Oct 25 '21 07:10 RomRider

Thanks for looking into this issue.

The error message is gone. Anything else I can do to assist debugging this issue?

FFlog2.txt

breti avatar Nov 13 '21 16:11 breti

Please try the latest beta, I introduced another problem while trying to fix this one haha :)

RomRider avatar Nov 15 '21 09:11 RomRider

I've updated to v1.10.1-dev.2 and cleared cache. Unfortunately the bug is not fixed, the box is empty again. There is a new error logged on console:

FFlog3.txt

breti avatar Nov 15 '21 17:11 breti