Re: Percentage sign on geo charts legend and in the region popup

305 views
Skip to first unread message

asgallant

unread,
Jun 1, 2012, 12:52:02 PM6/1/12
to google-visua...@googlegroups.com
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?
Reply all
Reply to author
Forward
0 new messages