Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to give time to the x-axis #158

Open
srishalu opened this issue May 11, 2022 · 3 comments
Open

How to give time to the x-axis #158

srishalu opened this issue May 11, 2022 · 3 comments

Comments

@srishalu
Copy link

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

@entronad
Copy link
Owner

Use a TimeScale for the variable in x-axis.

@srishalu
Copy link
Author

srishalu commented May 15, 2022

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

@entronad
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants