Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tons of console errors #17

Open
DavidFW1960 opened this issue Jan 29, 2021 · 12 comments
Open

tons of console errors #17

DavidFW1960 opened this issue Jan 29, 2021 · 12 comments
Labels
ApexCharts.JS ApexCharts.JS issue bug Something isn't working

Comments

@DavidFW1960
Copy link

image

Not sure now... Just did an empty cache/hard reload and now I see no errors....

@RomRider RomRider added the bug Something isn't working label Jan 29, 2021
@RomRider
Copy link
Owner

RomRider commented Jan 29, 2021

Yes, that is a bug in the library ApexCharts, I can't do anything about it unfortunately :(. You can ignore them.
It happens mainly when you have null data in the time line.

@RomRider RomRider pinned this issue Jan 29, 2021
@RomRider RomRider added the ApexCharts.JS ApexCharts.JS issue label Jan 29, 2021
@k1ng440
Copy link

k1ng440 commented Feb 1, 2021

add an option to delete null points

@RomRider
Copy link
Owner

RomRider commented Feb 4, 2021

Seems like I've fixed it but I don't know what fixed it 😅. I don't have anymore those errors with the latest beta (and maybe even before that)
Do you confirm?

@andrewdolphin
Copy link

I'm in the latest version and still seeing these errors (10's of thousands of them!)

@RomRider
Copy link
Owner

RomRider commented Feb 8, 2021

It happened again also on my side. It's not breaking anything, so I'll keep this opened. Maybe it will solve itself in the future while upgrading the library.

@RomRider
Copy link
Owner

In the latest beta (v1.11.0-dev.1), I've updated the apexcharts library to the latest version which seems to have fixed those console errors (at least there's way way less). Could you please check?

@Mariusthvdb
Copy link

just found this and updated and yes, I do believe the errors have disappeared ;-)

thx!

@RomRider
Copy link
Owner

Cool thanks for the feedback :)

@Mariusthvdb
Copy link

right. I ofc shouldn't have been so quick....

Schermafbeelding 2022-04-22 om 10 21 38

and the odd thing is, this happens on pages even without a single apexchart card...

so sorry

@arboeh
Copy link

arboeh commented Jun 7, 2023

Same here with v2.0.4
update_interval is 1min or 15min.

2023-06-07 07_02_48-Übersicht – Home Assistant

@kvanbiesen
Copy link

made a dirty hack to get rid of most of the spam Log. Only drops an console error when leaving a page that contains an apex card.

/www/communty/apexchart-card/apexchartcard.js
Delete the GZ file and edit ABOVE file

!!!!!!!!!!!!!!!!MAKE BACKUP OF THE FILE!!!!!!!!!!!!!!!!!!!

Use a unminify tool like to make it more readable: https://www.unminify2.com/


Line: 8661:
replace
for (var o in t) t.hasOwnProperty(o) && e.setAttribute(o, t[o])
with
for (var o in t) t.hasOwnProperty(o) && !String(t[o]).includes("NaN") && e.setAttribute(o, t[o])

Line: 23394:
Insert new line before "stroke-width" == e ? this.attr("stroke",......................
containing
if (String(t).includes("NaN")) return null;

Save and do a hard refresh (this is hardest part), i had to alter resources under settings- dashboard and change the number in the back of the url.

@kvanbiesen
Copy link

Btw for those not comfortable editing the JS file.

Attached here is a copy, replace in /homeassistant/www/community/apexcharts-card/apexcharts-card.js (rename remove .txt extension)
apexcharts-card.js.txt

WARNING its not minimized so slightly bigger than orginal (minify yourself)

Reduces the spam a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ApexCharts.JS ApexCharts.JS issue bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants