Charting dateTimeAxis offset weirdness
Hmm. I was stumped this morning for awhile on a charting problem. I’m posting the solution here for others who get stuck in same place.
Your time series graph uses dateTimeGrid, and you’ve set up some dummy data from hours 0 to 24 to make sure it works. Why the heck are the datapoints starting at 7:00 am and not 12:00 AM?
Thanks to Mr. Harker and I’ve removed this obstacle from my life and will now resume my sense of flow:
http://graemeharker.blogspot.com/2007/08/flexs-datatimeaxis-renders-in-gmt-by.html
Essentially, you have to set displayLocalTime attribute in the dateTimeAxis to true. When you create dates, they’re created as local time, but when you chart them they’re rendered as UTC. Hence (from Santa Cruz), the seven hour gap of strangeness.
Explore posts in the same categories: Uncategorized