When you set the legend.numberFormat option, you need to escape the percent
sign (IIRC, the escape character is a single-quote), so you would use:
legend: {
numberFormat: "#.#'%"
}
or something similar.
On Friday, June 1, 2012 11:54:28 AM UTC-4, help wrote:
>
> I have a set of data and it is showing the legend as just a number i.e.
> 15.8, but I want it to add a % sign after the 15.8 as it is a percentage.
> But when I put the % sign it seems to multiply my current number by 100.
>
> If I divide the dataset by 100, then the numbers on the region hover
> popup will show 0.158 even though the numbers I put in are already at the
> percentage status. I would also like the region popup to show 15.8% not
> 0.158.
>
> Does anyone know how to do this?
>
--
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/-/t32Wz0rtJBAJ.
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.