You can use the NumberFormatter ( https://developers.google.com/chart/interactive/docs/reference#numberformatter) to achieve this. Here's an example of this: http://jsfiddle.net/goe9aojc/17/
On Wed, Mar 18, 2015 at 11:29 AM Chad Wentzel <[email protected]> wrote: > Sergey, > Quick follow-up question: > Is there a way (using this method) to limit the number of digits returned > after the decimal to 2? i.e. If the temp is 26c the gauge returns a value > in F of 78.80000000000001... would be nice to limit that to 78.80 if > possible? > > thank you! > > On Wednesday, March 18, 2015 at 9:13:38 AM UTC-5, Chad Wentzel wrote: >> >> Sergey, >> Thank you for your reply - that may indeed do what I need!!! Will post >> back after a few tests later. >> Thanks again! >> >> On Wednesday, March 18, 2015 at 8:37:38 AM UTC-5, Sergey wrote: >>> >>> Hi Chad, >>> >>> There's nothing that's built-in to that Gauge that would allow you to do >>> this. But you can use DataView calculated columns to convert your data into >>> °C before it gets to the Gauge. Here is an example of this: >>> http://jsfiddle.net/goe9aojc/ >>> >>> On Tue, Mar 17, 2015 at 8:29 PM Chad Wentzel <[email protected]> wrote: >>> >>>> Anyone? Buehler? Buehler? >>>> >>>> >>>> On Tuesday, March 10, 2015 at 2:19:28 PM UTC-5, Chad Wentzel wrote: >>>>> >>>>> I'm using the gauges chart as a temperature display, however the >>>>> sensor (dht22) only reports in C (coming out of Raspberry Pi B+). Is >>>>> there >>>>> a way to take the reading that the gauge chart is displaying and use a >>>>> math >>>>> function on it, so it displays in F instead (i.e. °C × 1.8 + 32 = °F)? >>>>> >>>> -- >>>> >>>> -- > 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/d/optout. > -- 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/d/optout.
