Chart.js decimation for high-volume line charts
Use Chart.js decimation with LTTB to render large time-series line charts smoothly while keeping raw data for tooltips and export.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Use Chart.js decimation with LTTB to render large time-series line charts smoothly while keeping raw data for tooltips and export.
Use Chart.js’s Decimation plugin to keep line charts snappy even with thousands of points. Learn the exact config, how it works, and common pitfalls in this concise guide.
Chart.js's built-in decimation plugin renders 100k+ point line charts interactively using min-max or LTTB sampling — but only if the axis type, data format, and sorting preconditions are met.
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.
Goal: determine which decimation algorithm to standardize for rendering large line‑chart datasets in a browser‑side application. Constraints: the Chart.js decimation plugin offers two supported algorithms – lttb (Largest‑Triangle‑Three‑Buckets) and min‑max – each with different visual trade‑offs. The plugin requires options.parsing = false , sorted ascending