I'm using the following code to render a line chart:
function drawVisualization() {
> // Create and populate the data table.
> var data = google.visualization.arrayToDataTable([
> ['Date', 'Michelle 800m'],
> ['3/16', 163.84],
> ['4/13', 161.69],
> ['4/20', 162],
> ['5/4', 154.22],
> ['6/1', 155.46],
> ['6/8', 153],
> ['6/15', 151.22],
> ['6/22', 156.45],
> ['6/29', 153.45],
> ['7/31', 153.95]
> ]);
> // Create and draw the visualization.
> new
> google.visualization.LineChart(document.getElementById('visualization')).
> draw(data, {curveType: "none",
> width: 500, height: 250,
> vAxis: {minValue: 140}}
> );
> }
Each data point on the vAxis represents time elapsed in seconds. The data
points are graphed correctly, but the problem is that for times in excess
of one minute, the typical convention is to display it
in the format, mm:ss.ss. How can I make this conversion for display
purposes only?
- Robert -
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.