lttb 0.0.2 copy "lttb: ^0.0.2" to clipboard
lttb: ^0.0.2 copied to clipboard

A LTTB downsampling plugin

This plugin is used for downsampleing the data before rendering the chart. The purpose is to try retain the visual characteristics of the original line using considerably fewer data points. The algorithm (called Largest-Triangle-Three-Buckets or LTTB) used in this plugin is described in a Master's thesis (see hdl.handle.net/1946/15343) in Computer Science by Sveinn Steinarsson

This Plugin is re-write of Original Repo

Features #

  • Reduce the size of data without loosing resolution.
  • Keeps extreme ends of data intact

Usage #

List<List<num>> downSampledData = lttb(demoData, 400);

Additional information #

Known limitations #

  • Does not support gaps (null values) in the data array.
  • X-values must be in a strictly increasing order.

License #

flot-downsample is released under the terms of the MIT License.

1
likes
95
pub points
63%
popularity

Publisher

unverified uploader

A LTTB downsampling plugin

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on lttb