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
After experimentation I found that decimation only works if the number of points on the chart is 4+ times the pixel width of the chart. You can see it here: https://codesandbox.io/s/react-17-forked-gt7qvw?file=/src/App.js. Resize the preview area and you'll see decimation kick in at widths below 500px.
Documentation Is:
Please Explain in Detail...
After experimentation I found that decimation only works if the number of points on the chart is 4+ times the pixel width of the chart. You can see it here: https://codesandbox.io/s/react-17-forked-gt7qvw?file=/src/App.js. Resize the preview area and you'll see decimation kick in at widths below 500px.
This requirement isn't documented in list here: https://www.chartjs.org/docs/latest/configuration/decimation.html#requirements
I'm also not sure why this is a requirement. It makes sense for min-max decimation but when using lttb it doesn't seem necessary.
Your Proposal for Changes
It seems like this requirement should be documented here. Will create a PR for it.
Example
https://codesandbox.io/s/react-17-forked-gt7qvw?file=/src/App.js
The text was updated successfully, but these errors were encountered: