entronad / flutter_echarts

A Flutter widget to use Apache ECharts in a reactive way.

Home Page:https://pub.dev/packages/flutter_echarts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to give time to the x-axis

srishalu opened this issue · 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

Use a TimeScale for the variable in x-axis.

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

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