jQuery UI Widgets › Forums › Chart › Date Format : Chart with range selector
This topic contains 20 replies, has 3 voices, and was last updated by brogen 9 years ago.
-
Author
-
Hi brogen,
It would seem that the new Date() function doesn’t recognize your date/time string pattern under internet explorer (whereas Chrome does).
If you want to support it, you would need to write some more code to properly convert your object to a Date Object.Probably this topic could help you.
Best Regards,
VladimirjQWidgets Team
http://www.jqwidgets.comOh, it’s really strange.
One more time, you’re right. On my phone, it looks correct.
With all other charts, i see the line, but with this one, no. As you said, it’s a javascript object, and it’s possible that our proxy at work blocks such code…
I’ll have a look, still with firefox, but at home. It’s sad if I can’t see the line when I’m at work, but it’s only a little problemOne more time, I thank you for all 🙂
Hello Vladimir.
When I posted my last answer, I didn’t see your answer on September 18, 2015 at 9:02 am.
So, i confirm. It looks that Chrome reconize data, but IE or Firefox can’t.
So, I read the post, but I can’t find solution to resolve this…
Thanks
Hi brogen,
The solution is:
1. Use jqxDataAdapter.
2. Set type: “date” to your Date field.
3. Set format: “…” where “…” is your Date format.By doing that, your Date Strings will be parsed to JavaScript Date objects by jqxDataAdapter.
Another option is to parse these with some custom code written by you.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Hi Peter !
I say : YES YES YES !!! It’s was so easy, and it’s finaly WORKING ! Thanks for all.
Now, I just have a little problem. The zoom doesn’t work properly for me. When I move the range selector, before datas, the line stay in the middle of the chart. But, when I move the range selector into datas, zoom is working.
If you know the problem, maybe you can help me. If you want to see code and other, you can have a look hereThanks again to the team 🙂
I found my problem. I just had to change the “base unit” of my range selector from “day” to “hour”.
-
AuthorPosts
You must be logged in to reply to this topic.