Hi,

I'm currently working with motion charts.
I'm trying to get time as  my X axis in hh:mm format.
I have pasted my code below.
Currently my csv contains date in yyyy-mm-dd format.
But i want to use time instead of date.
Can someone help me achieve this?

var data = response.getDataTable();
var chart = new
google.visualization.MotionChart(document.getElementById('chart_div'));
var formatter = new google.visualization.DateFormat({pattern:
'Hk:Mm'});
formatter.format(data, 1);
var options = {};

options['state'] = '{"iconKeySettings":[],"stateVersion":
3,"time":"notime","xAxisOption":"_NOTHING","playDuration":
15,"iconType":"BAR","sizeOption":"_NOTHING","xZoomedDataMin":null,"xZoomedIn":false,"duration":
{"multiplier":1,"timeUnit":"none"},"yZoomedDataMin":null,"xLambda":
1,"colorOption":"_NOTHING","nonSelectedAlpha":0.4,"dimensions":
{"iconDimensions":
[]},"yZoomedIn":false,"yAxisOption":"_NOTHING","yLambda":
1,"yZoomedDataMax":null,"showTrails":true,"xZoomedDataMax":null};';

options['width'] = 1024;
options['height'] = 800;
options['showAdvancedPanel'] = false;
chart.draw(data, options);

Thanks in advance.

-
Harish.

-- 
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.

Reply via email to