You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught TypeError: Failed to execute 'createLinearGradient' on 'CanvasRenderingContext2D': The provided double value is non-finite. at addFitter (chartjs-plugin-trendline.js:136:24)
Changing the first value to any int > 0 solves this issue, every other data point can be 0. Values < 0 cause this error as well.
I removed the "logarithmic" setting, and that made the chart start working. Now, I need to keep looking into why logarithmic scale caused this problem. @tsnork
when the first value in data array is 0
the following error gets thrown:
Changing the first value to any int > 0 solves this issue, every other data point can be 0. Values < 0 cause this error as well.
Here's a codepen with the reproducible issue:
https://codepen.io/tsnork/pen/RwqqaJg
Thx for your work with this library!
The text was updated successfully, but these errors were encountered: