You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-visua...@googlegroups.com
Is it possible to specify the precision of floating point values in graph axes? I'd like the values shown to three points but I can't seem to force this.
Thanks.
asgallant
unread,
Oct 15, 2012, 12:53:26 AM10/15/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-visua...@googlegroups.com
Set the vAxis or hAxis's (depending on which you want to format) format property to something like "#.###", ie:
vAxis: { format: '#.###' // show axis values to 3 decimal places
Wells Oliver
unread,
Oct 15, 2012, 1:07:46 AM10/15/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-visua...@googlegroups.com
Thanks. It's odd, but '#.###' does not work, yet '0.000' does work.
Wells Oliver
unread,
Oct 15, 2012, 1:10:43 AM10/15/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-visua...@googlegroups.com
Also: is there a way to set the floating point precision for the values shown in the tooltip?
asgallant
unread,
Oct 15, 2012, 1:47:49 AM10/15/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-visua...@googlegroups.com
Sorry about that - the one I posted will restrict to 3 significant figures, but it won't force them when the value wouldn't use them normally.
To format the tooltips, use a NumberFormatter on the DataTable column. You can use the same format pattern.