@vizcrush/downsample
v1.0.0
Published
LTTB, MinMaxLTTB, M4, LTOB downsampling algorithms
Maintainers
Readme
@vizcrush/downsample
LTTB, MinMaxLTTB, M4, and LTOB downsampling for time-series visualization.
Part of vizcrush — high-performance data primitives for browser visualization, written in Rust, compiled to WebAssembly, with a pure-JS fallback.
Install
npm install @vizcrush/downsampleExample
import { lttb } from "@vizcrush/downsample";
// 1M points -> 1,920 while preserving visual shape (~2ms)
const { x, y } = await lttb(timestamps, values, 1920);Documentation
Full guides and API reference: debug-diary-1.github.io/vizcrush · The vizcrush Book
License
MIT
