Chart.js
Chart.js copied to clipboard
Merging all the same data points.
Feature Proposal
Let's assume that I have over 10 000 data points that always have the same value. Then I have data points that have a different value, now I want to show a tooltip for all data with the same value, but this is only possible if I draw a data point, can I also create a tooltip for a certain area.
Possible Implementation
I would like to merge all the same data points into two (start and end point), and then hover over the line. The red line shows the concept. this would give a big performance advantage especially if a lot of data points are to be displayed.
This feels like it might be an optimization of the decimation plugin. Right now that plugin is the best way to achieve the reduction in points that you're looking for
For the tooltip, you could use interpolation: https://codepen.io/kurkle/pen/WNpdwgE