How do I do this with date adapters? #9254
Unanswered
Darhagonable
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm working on a page which lets one see historical view of sensor values over time with different options for timespan.
I can't find any example of how to use date adapters as mentioned in the documentation. I made my own system to handle the dates shown but its far from perfect. I'm trying to make it work similar to the graphs google is showing for example GameStop Stock market were one can choose between different timespans to view for and the x-axis adjusts accordingly.
I'm using chartjs-react to be able to write the chart as a simple react component.
My current bad code:
Could anyone help me figure out how to do something similar but better using the date adapters or generally know some better way of doing this?
Beta Was this translation helpful? Give feedback.
All reactions