The date and dateTime formating in the right top corner you can easily
control with one option:
vizOptions = {
dateFormat: 'dd.MM.yy hh:mm'
};
vizChart = new
google.visualization.AnnotatedTimeLine(document.getElementById('chart_div'));
vizChart.draw(vizTable, vizOptions);
}
I tried several ways to change the dateTime format on the x-axis but was *
not* successful:
vizOptions = {
dateFormat: 'dd.MM.yy hh:mm',
hAxis: {format: 'Y,M,d,H'}
};
var formatter = new google.visualization.DateFormat({formatType:
'short'});
formatter.format(vizTable, 0);
vizChart = new
google.visualization.AnnotatedTimeLine(document.getElementById('chart_div'));
vizChart.draw(vizTable, vizOptions);
}
It is simply ignored by the Google API. Is this bug already in the official
bug reporting?
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/y_FhSecNG3YJ.
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.