Optimizing Chart.js Performance with Data Decimation for Large Datasets
Chart.js's built-in decimation plugin cuts rendered points from 50k to ~500 using LTTB, preserving visual trends while restoring 60fps interaction. Requires 'index' scale and sorted data; tooltips need a callback for original values.