Closed (fixed)
Project:
Open Flash Chart API
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
12 Dec 2007 at 14:04 UTC
Updated:
14 Jul 2008 at 10:03 UTC
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 \'%\'
Comments
Comment #1
redndahead commentedHave you tried: $g->set_tool_tip('#val#%');
You can see the options here: http://teethgrinder.co.uk/open-flash-chart/gallery-tool-tip.php
Comment #2
redndahead commentedComment #3
redndahead commentedClosing this from lack of a response.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
vivianspencer commentedHi 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.
Comment #6
redndahead commentedTry %25
so $g->set_tool_tip('#val#%25');
red
Comment #7
vivianspencer commentedyep, that worked perfectly, even in the title
thank you
Comment #8
redndahead commentedAwesome to hear! FYI anyone looking at this you'll need to url encode '&' and maybe other symbols too.
Comment #9
mattez commentedHTML URL-encoding Reference:
http://www.w3schools.com/TAGS/ref_urlencode.asp
Comment #10
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.