Hi Chris,

Where are these numbers showing up, in tick labels or in tooltips?  You
have to handle each case slightly differently.  The tick labels can be
formatted by using an option like this:

  hAxis: { format: '#.##' }  // use #.00 if you want to always show 2
digits after the decimal point.

For tooltips, you'll need to specify the formatting of each value.  One way
you can do this is documented here:
https://developers.google.com/chart/interactive/docs/reference#formatters


On Wed, Feb 24, 2016 at 3:59 PM, <[email protected]> wrote:

> I have dynamic charts on a page, and a couple of them round to 17 decimal
> places.  I can't figure out a way to keep them rounded to at most
> hundredths.  Any help would be appreciated!
>
> Chris
>
> --
> 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
> 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/325b6b3f-aebc-40a9-b57d-c069432b812a%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/325b6b3f-aebc-40a9-b57d-c069432b812a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]>   5CC, Cambridge MA

-- 
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 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/CAOtcSJP25w6k2DhVqa%3DTzc5M%2BDWk6w07KgnPf0AJ62S5W6Z44Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to