Replies: 1 comment
-
Alright, data in JSON should not be new Date... but it should be a timestamp. When I figure how it works I'll update here |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm creating a timeline with Apex Chart. I want to load data dynamically from a JSON. You can see how it looks like with hard coded data here.
My data.json looks like this:
I've also tried defining y like this:
"new Date('2019-03-05').getTime(), new Date('2019-03-08').getTime()"
And like this:
My code looks like this:
My console output looks like this: console output
![image](https://user-images.githubusercontent.com/3876219/133783562-c91ace6a-0430-47b3-ac61-f7d170f71cdd.png)
My chart looks like this:
![image](https://user-images.githubusercontent.com/3876219/133783602-9a9f125c-741c-4cfa-94f3-540d7afbea74.png)
As you can see my "name" and "x" values do show up on chart but there is no date ranges
Thank you for your help
Beta Was this translation helpful? Give feedback.
All reactions