Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Timeseries Downsampling

In situations where the number of points of a timeseries is extremely large, generating a plot and visualizing it using plotly will be slow or not possible.

For such cases, it is ideal to use a downsampling method that preserves the visual characteristics of the timeseries. One such method is to use the Largest Triangle Three Bucket (LTTB) method.

The MinMaxLTTB or classical LTTB method can be used to downsample the timeseries prior to generating the static HTML plots. An example of how this can be achieved can be found in examples/downsampling directory using the minmaxlttb-rs crate.

For more examples see the minmaxlttb-rs crate.

Example downsampling