Adding "%" symbol in the gauge

921 views
Skip to first unread message

Andy H

unread,
Mar 22, 2012, 11:50:56 AM3/22/12
to Google Chart API
Anyone know of a way to add the "%" symbol after the data or number
rendered at the bottom of the gauge? I see you can format number as
percentages in other Google charts -- but I can't figure out a way to
do it with the gauge chart.

Thanks :-)

Bassam Safar

unread,
Apr 4, 2012, 12:28:27 PM4/4/12
to google-c...@googlegroups.com
I did it by adding a formatter:
       
        var formatter = new google.visualization.NumberFormat(
                  {suffix: '%'});
              formatter.format(dataGauge, 1); // Apply formatter to second column

good luck =)
b
Reply all
Reply to author
Forward
0 new messages