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

A LTTB downsampling plugin before rendering the chart.

example/lttb_example.dart

import 'package:lttb/lttb.dart';

void main() {
  var demoData = [
      [0, 100.0],
      [1, 101.0],
      [2, 102.0],
      [3, 103.0],
      [4, 104.0],
      [5, 105.0],
      [6, 106.0],
      [7, 107.0],
      [8, 108.0],
      [9, 109.0],
      [10, 110.0],
  ];
  List<List<num>> downSampledData = lttb(demoData, 400);
  print('downsampled data: ${downSampledData.toString()}');
}
1
likes
120
pub points
65%
popularity

Publisher

unverified uploader

A LTTB downsampling plugin before rendering the chart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on lttb