Zoom-aware sampling

This demo makes ChartGPU’s zoom-aware sampling visually obvious: when you zoom in, the chart keeps more points so high-frequency detail and spikes reappear; when you zoom out, it down-samples aggressively to stay fast.

← Back to examples
Dataset
Total points
X domain
Sampling
samplingThreshold
Zoom window (drives zoom-aware sampling)
Zoom range
Span
Visible raw points (approx)
Target sampled points (approx)
Expected rendered points (approx)
Gestures: mouse wheel zooms (inside plot); Shift + drag pans (inside plot). The slider below the x-axis controls the same window. Sampling affects rendering + cartesian hit-testing only; axis bounds use raw (unsampled) data.