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
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

redndahead - December 12, 2007 - 15:49

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

redndahead - December 12, 2007 - 15:49
Assigned to:Anonymous» redndahead

#3

redndahead - January 9, 2008 - 04:57
Status:active» fixed

Closing this from lack of a response.

#4

Anonymous (not verified) - January 23, 2008 - 05:13
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#5

vivianspencer - June 15, 2008 - 08:06
Status:closed» active

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

redndahead - June 15, 2008 - 14:48

Try %25
so $g->set_tool_tip('#val#%25');

red

#7

vivianspencer - June 18, 2008 - 08:41

yep, that worked perfectly, even in the title

thank you

#8

redndahead - June 18, 2008 - 14:33
Status:active» fixed

Awesome to hear! FYI anyone looking at this you'll need to url encode '&' and maybe other symbols too.

#9

mattez - June 30, 2008 - 10:02

#10

Anonymous (not verified) - July 14, 2008 - 10:03
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.