← Back to the article

Largest Triangle Three Buckets, live

The gray line is 5,000 noisy points with a few sharp spikes. The colored line is what survives downsampling. Drag the threshold down to 50, then switch to every-Nth sampling and watch the spikes vanish while LTTB keeps them.

Method

Kept points as a table
x (index)y (value)

The LTTB implementation here is the one from the article, ported line for line. Every number on this page is computed in your browser on each change; nothing is precomputed.