MPFlutterChart icon indicating copy to clipboard operation
MPFlutterChart copied to clipboard

ValueFormatter callback value is wrong in LineChart.

Open sandeepcmsm opened this issue 5 years ago • 0 comments

Use case: im trying to print temperature values from sensor . x axis => timestamp in milliseconds. y axis => temperature.

sensor is emitting around every 3 seconds. i try to work on example given in https://github.com/SunPointed/MPFlutterChart/blob/master/mp_chart/example/lib/demo/even_more/realtime.dart

I need to format timestamp values in "HH:MM" format. but as I keep adding entry from sensor ValueFormatter callback is always giving initial timestamp values.

var count = set.getEntryCount().toDouble(); controller.moveViewToX(count); its not moving to last entry.

sandeepcmsm avatar Aug 12 '20 13:08 sandeepcmsm