flutter_echarts icon indicating copy to clipboard operation
flutter_echarts copied to clipboard

How to give time to the x-axis

Open srishalu opened this issue 3 years ago • 3 comments

Can we have a example of giving some set of static time (06:00:00) like this in x-axis. I tried giving timestamp value that's not working. What is the format to give for time type

srishalu avatar May 11 '22 15:05 srishalu

Use a TimeScale for the variable in x-axis.

entronad avatar May 12 '22 00:05 entronad

Use a TimeScale for the variable in x-axis.

Can we get a sample code? I have sets of data in timestamp from backend, but i want to show in 06:00:00 format. How to use the formatter in x-axis labels.Also i want to push the data every 5000 ms. Please help on this

srishalu avatar May 15 '22 13:05 srishalu

Sorry, I have misstaken this issue to another repo of mine.

That one is better and solve your problem: https://github.com/entronad/graphic

example: https://github.com/entronad/graphic/blob/45963fee4673faf6ad95b7fd9355264c2cc8b7d1/example/lib/pages/line_area_point.dart#L66

entronad avatar May 15 '22 15:05 entronad