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

A chart with no datapoints breaks when trying to render a trend line #42

Closed
VoxSecundus opened this issue Nov 9, 2020 · 0 comments · Fixed by #43
Closed

A chart with no datapoints breaks when trying to render a trend line #42

VoxSecundus opened this issue Nov 9, 2020 · 0 comments · Fixed by #43

Comments

@VoxSecundus
Copy link
Contributor

If I render a chart where all of its datasets are empty, or if I empty the dataset of a chart already rendered, the chart will bork and no longer allow itself to be modified. This only occurs when trendlineLinear is included in the options. The browser console spits out:

Uncaught TypeError: t.data[0] is undefined

It would be nice if, on such an occasion, the trendline simply didn't render.

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

Successfully merging a pull request may close this issue.

1 participant