|
43 | 43 | * [Exporting Static Images with plotly_static (Recommended)](#exporting-static-images-with-plotly_static-recommended)
|
44 | 44 | * [Exporting Static Images with Kaleido (legacy)](#exporting-static-images-with-kaleido-legacy)
|
45 | 45 | * [Usage Within a WASM Environment](#usage-within-a-wasm-environment)
|
| 46 | + * [Timeseries Downsampling](#timeseries-downsampling) |
46 | 47 | * [Crate Feature Flags](#crate-feature-flags)
|
47 | 48 | * [Contributing](#contributing)
|
48 | 49 | * [Code of Conduct](#code-of-conduct)
|
@@ -222,7 +223,11 @@ pub fn plot_component() -> Html {
|
222 | 223 | }
|
223 | 224 | ```
|
224 | 225 |
|
225 | | -More detailed standalone examples can be found in the [examples/wasm-yew](https://github.com/plotly/plotly.rs/tree/main/examples/wasm-yew) directory. |
| 226 | +## Timeseries Downsampling |
| 227 | + |
| 228 | +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. |
| 229 | + |
| 230 | +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](https://github.com/plotly/plotly.rs/tree/main/examples/downsampling) directory using the [minmaxlttb-rs](https://github.com/andrei-ng/minmaxlttb-rs) crate. |
226 | 231 |
|
227 | 232 | # Crate Feature Flags
|
228 | 233 |
|
|
0 commit comments