pChart 2.x forum
http://wiki.pchart.net/forum/

DrawValues on pPie Chart
http://wiki.pchart.net/forum/viewtopic.php?f=3&t=32
Page 1 of 1

Author:  mykchan [ Thu Dec 16, 2010 5:24 am ]
Post subject:  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 5619 times ]

Author:  mice32 [ Thu Dec 16, 2010 5:32 am ]
Post subject:  Re: DrawValues on pPie Chart

OFFTOP: Hahaha! Your chart is a bit... Strange! :lol:

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/