Download & Extend

Wondering if I can get a % sign in the label

Project:Open Flash Chart API
Version:5.x-2.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:redndahead
Status:closed (fixed)

Issue Summary

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

#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

Assigned to:Anonymous» redndahead

#3

Status:active» fixed

Closing this from lack of a response.

#4

Status:fixed» closed (fixed)

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

#5

Status:closed (fixed)» 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

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

red

#7

yep, that worked perfectly, even in the title

thank you

#8

Status:active» fixed

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

#9

#10

Status:fixed» closed (fixed)

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

nobody click here