View unanswered posts | View active topics It is currently Thu Mar 28, 2024 11:12 am



Reply to topic  [ 2 posts ] 
DrawValues on pPie Chart 
Author Message
Regular pChart user
Regular pChart user

Joined: Mon Dec 13, 2010 7:54 am
Posts: 13
Location: Gold Coast, Australia
Post DrawValues on pPie Chart
hi,

i wanted to request an option to draw values on pie charts, similar to DrawLabels for the pPie class.

ive modified pPie.class to to this, it was very easy.

search for DrawLabels and copy/paste the code block immediately under itself, then change the code to use the Value instead of the Label:

Label: $Data["Series"][$Data["Abscissa"]]["Data"][$Key]
Value: $Data["Series"]["Data"]["Data"][$Key]

edit: dont forget to add DrawValue as a parameter near the top of pPie.class (again, search for DrawLabel and copy/paste/modify it to suit) and dont forget to add "DrawValues"=>true to your format array for draw3DPie()


Attachments:
pchart.png
pchart.png [ 52.99 KiB | Viewed 5410 times ]
Thu Dec 16, 2010 5:24 am
Profile
Experienced pChart user
Experienced pChart user

Joined: Thu Dec 02, 2010 3:03 pm
Posts: 36
Location: Somerville, MA, USA
Post Re: DrawValues on pPie Chart
OFFTOP: Hahaha! Your chart is a bit... Strange! :lol:

_________________
Image


Thu Dec 16, 2010 5:32 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron