Guillaume B

1pod

LTTB

Largest Triangle Three Buckets downsampling algorithm in Swift.

Original version by Sveinn Steinarsson(https://github.com/sveinn-steinarsson/highcharts-downsample)

Author : Guillaume Beal

The visualization isn’t meant to give you access to the individual values of tens of thousands of data points on a line, it’s meant to show you how that data looks and is trending over time."(http://blackops.io/blog/2014/05/time-series-graphs-and-downsampling/) This algorithm shrinks a timeserie and keeps the visual apsect of the serie.

Pre-process your time serie with LTTB in order to display a thousands of points on a Graph.

Works well with Charts API https://github.com/danielgindi/Charts

License: MIT

  • Swift