Fellow timeline afficianados,
I am displaying multiple timelines on one page. All works except for
one thing...
The x-axis does not show any dates at all.
I thought it was because my date formats were off, but verified
they're fine. In fact, I see them perfectly in the legend and as I
roll over them in the actual timeline.
They just will not show in the x axis.
I am dealing with montly data (all dates are the 1st of the month) and
using PHP to pull data from mySQL. I then store all of this in a JSON
object and use jQuery to each through and build my data values for the
timeline.
Here is a sample of that last part...
// Split timestamp into [ Y, M, D, h, m, s ]
t2 = json_actives[bb].reg_date.split(/[- :]/);
// Apply each element to the Date function
d2 = new Date(t2[0], t2[1]-1, t2[2]);
data.setValue(bb, 0, d2);
data.setValue(bb, 1, parseFloat(json_invites[bb].invites_30));
data.setValue(bb, 2, undefined);
data.setValue(bb, 3, undefined);
I then call the draw function like this...
annotatedtimeline.draw(data, {displayAnnotations: true});
Summary... All works aside from the x-axis.
A full code sample can be found here:
http://cl.ly/B1zp
And a screen shot of how one of the timelines renders is here:
http://cl.ly/B28i
Thoughts?
Thanks in advance!
Jim
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.