I've finally managed to get the tooltip formatting the way I want it and also to render a series of graphs based on a series of data sets: http://jsfiddle.net/fERP6/12/
However, the one thing I'm currently hung up on is trying to make it work when I render the divs for the graphs dynamically, which always results in a "JavaScript runtime error: Container is not defined" error. Any thoughts on this? - Robert - On Tuesday, October 8, 2013 6:49:37 AM UTC-5, trybka wrote: > > Try http://jsfiddle.net/fERP6/7/ (apparently some of the timeofday > improvements are in the "testing" release, 1.1) > > What do you mean by ticks in this case? > > Thomas Rybka | Software Engineer | [email protected] <javascript:> | GViz > > > On Tue, Oct 8, 2013 at 7:29 AM, Robert Mayer <[email protected]<javascript:> > > wrote: > >> One other thought... would it be advantageous at all if I were to supply >> my data values in ticks rather than seconds and fractions? >> >> - Robert - >> >> On Monday, October 7, 2013 3:58:31 PM UTC-5, trybka wrote: >> >>> 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.**arrayToDa**taTable([ >>>>>> ['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 google-visualization-api+**[email protected]. >>>> To post to this group, send email to google-visua...@**googlegroups.com >>>> . >>>> >>>> Visit this group at http://groups.google.com/** >>>> group/google-visualization-api<http://groups.google.com/group/google-visualization-api> >>>> **. >>>> For more options, visit >>>> https://groups.google.com/**groups/opt_out<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]<javascript:> >> . >> To post to this group, send email to >> [email protected]<javascript:> >> . >> 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.
