You need to set the formatted value of each cell to whatever you want (in your case, a string with comma formatting). See http://code.google.com/apis/chart/interactive/docs/reference.html#DataTable and search for "formatted value".
You can also use the number formatter<http://code.google.com/apis/chart/interactive/docs/reference.html#numberformatter> as a convenience method to set the formatted values of an entire data table. On Sat, Oct 8, 2011 at 1:44 AM, Brandon Tran <[email protected]> wrote: > When you hover over a point on a line chart, the number doesn't have a > comma formatting. It isn't a huge deal if you have smaller numbers, > but when you are in the 200 million range it is tough to read. Here is > a screen shot. > > https://skitch.com/brandontran/f6exs/photoshop<http://www.google.com/url?sa=D&q=https://skitch.com/brandontran/f6exs/photoshop&usg=AFQjCNGTQQdAMiq69PLHA1hxFCjdFjohqw> > > > I tried adding commas to the numbers and this causes an error because > it's not a real number: > data.setValue(i, 1, '100,100,123'); > > It has to be set as: > data.setValue(i, 1, '100100123'); > > The y axis does format the numbers, it's just the hover that doesn't > format the numbers. > > Is this an option that I am missing or is this a bug? > > -- > 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/-/3pUz5DrWXuQJ. > 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. > -- 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.
