tooltip not showing very smal numbers

33 views
Skip to first unread message

Just Thinking

unread,
Jan 23, 2018, 5:08:21 PM1/23/18
to Google Visualization API
Hi,

I have a line chart where the y values are in the order of 0.00001. The line chart works fine, but when I hover over it with the mouse, the tool tip only shows 0. I guess it is rounding the number? Can this be turned off or specified to how many decimal places it will round to?

Thx.

Sean Larson

unread,
Jan 23, 2018, 7:45:51 PM1/23/18
to Google Visualization API
I believe you can apply a formatter before you draw the chart. 

formatter = new google.visualization.NumberFormat({
pattern
= "#.#####";
});


formatter
.format(yourDataTableorDataViewHere, columnID);

Not sure if it has any digit limitations. 

Daniel LaLiberte

unread,
Jan 23, 2018, 8:40:46 PM1/23/18
to Google Visualization API
The tooltip display value comes from your data. If the value is only on the order of 0.00001, then it should not be rounding to 0.   You can specify the formatted representation of the values in your data, or by using one of the formatters.  Perhaps you should point us at your chart so we can debug the page.

--
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+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/79a90b46-8ab2-468a-aa80-009e6fd049c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages