Limit data points with chart js in React

๐Ÿ‘:0

To improve the over-labeling, set a limit on the number of ticks. Limit labels number on Chart.js line chart. To improve the load speed, you would want to display less data points, so trimming the data before displaying it could be an option.

๐Ÿ‘:0

You can make use of the build in data decimation that limits the amount of data points.

Example: https://www.chartjs.org/docs/master/samples/advanced/data-decimation.html

Leave a comment