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

LineChart error on empty data #666

Closed
MicahKimel opened this issue Mar 14, 2023 · 1 comment
Closed

LineChart error on empty data #666

MicahKimel opened this issue Mar 14, 2023 · 1 comment

Comments

@MicahKimel
Copy link

I am dynamically setting the data labels, datasets, and legend, but was experiencing some errors when the data was empty such as the LinearGradient in AbstractChart.js line 192 can't read property length of undefined. I was able to fix this by writing some inline if statements to check for nulls in the AbstractChart.js and the LineChart.js of my dist. If this is something that would be good to merge into the project let me know.

@MicahKimel
Copy link
Author

Here are the conditional statements I wrote to fix this issue

#667

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant