Wondering if I can get a % sign in the label
yurtboy - December 12, 2007 - 14:04
| Project: | Open Flash Chart API |
| Version: | 5.x-2.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | redndahead |
| Status: | closed |
Jump to:
Description
I would like the pie chart to look somewhat like this
http://www.nationalpriorities.org/interactive-tax-chart/2.html
Now I am not too worried about the numbers being on the pie but if I can get the labels to show the numbers.
For example
Miltary 27% <--but the percent does not show.
Tried %%% and \'%\'

#1
Have you tried: $g->set_tool_tip('#val#%');
You can see the options here: http://teethgrinder.co.uk/open-flash-chart/gallery-tool-tip.php
#2
#3
Closing this from lack of a response.
#4
Automatically closed -- issue fixed for two weeks with no activity.
#5
Hi yes this still is a problem, I've tried $g->set_tool_tip('#val#%');, it doesn't display the percentage sign at all.
I tried adding a pound sign and that only works if I add it as £ so I tried the percentage sign in ascii format and it still doesn't show.
Another interesting problem occurs when I add the percentage sign to the title; the text shrinks. In the picture I've attached a picture first displaying the pie chart without the percentage sign and then below that with the percentage sign.
#6
Try %25
so $g->set_tool_tip('#val#%25');
red
#7
yep, that worked perfectly, even in the title
thank you
#8
Awesome to hear! FYI anyone looking at this you'll need to url encode '&' and maybe other symbols too.
#9
HTML URL-encoding Reference:
http://www.w3schools.com/TAGS/ref_urlencode.asp
#10
Automatically closed -- issue fixed for two weeks with no activity.