You could use timeofday for your specification of the time. I tried it, and it seems to work well, but the tick calculation doesn't seem to fall on ms boundaries, so the fractional seconds are all 000.
Sadly, the tooltips are formatted a little strange, so I overrode the tooltips to get something a little nicer (using Moment.js http://momentjs.com/). Here's a jsfiddle that munged your data to put the seconds and ms in an array, and added a tooltip column, and axis formatting: http://jsfiddle.net/fERP6/6/ On Sun, Oct 6, 2013 at 7:32 PM, asgallant <[email protected]> wrote: > There is not built-in conversion for seconds to "mm:ss.SS" - you will have > to do so manually by calculating the appropriate string value and setting > the formatted value of the cell to that value. > > > On Sunday, October 6, 2013 5:45:25 PM UTC-4, Robert Mayer wrote: >> >> 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. > -- 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.
