Order dates correctly

14 views
Skip to first unread message

Javier

unread,
May 25, 2012, 9:07:01 AM5/25/12
to Google Chart API
Hi all the people,

i have building a chart like a result of mysql data and i have the
result data like this:

$grafData = "google.visualization.arrayToDataTable([['Month',
'Electricidad', 'Gas', 'Agua'],['2007/02', 966, 812, 0],
['2007/02', 966, 812, 0],
['2007/03', 0, 0, 0],
['2007/04', 0, 0, 0],
['2008/04', 860, 469, 0],
['2008/05', 0, 0, 0],
['2008/06', 655, 126, 0],
['2009/07', 0, 0, 0],
['2009/08', 567, 6, 0],
['2010/09', 0, 0, 0],
['2011/10', 583, 13, 0],
]);";

the problem is that the resultant graph is not drawing correctcly ( in
timeline ) the horizontal date objects. For example i have in the
first place 2007/02 the 2007/03 next 2008/04 and incorrectly next
2007/04.

Could i order with the api the correct position in timeline of the
dates?

Thank you very much
Reply all
Reply to author
Forward
0 new messages