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

Hide zero value
http://wiki.pchart.net/forum/viewtopic.php?f=1&t=29347
Page 1 of 1

Author:  francescocece82 [ Wed May 30, 2012 7:00 am ]
Post subject:  Hide zero value

Hi,

I have a question:

I have a 2 series data:
Serie 1: Bar graph
Serie 2: line graph

I need to hide the point in Serie 2 with value = = 0.
It is possible??
See attach file.
Thank you

Attachments:
monthly_chart.png
monthly_chart.png [ 65.28 KiB | Viewed 5223 times ]

Author:  chartbreaker [ Wed May 30, 2012 12:31 pm ]
Post subject:  Re: Hide zero value

you have to sustitute the zero values with the VOID constant in your series
then the output is supressed
make sure that the pData.class is included before walking the arrays to substitute zero by VOID

see also
viewtopic.php?p=3587#p3587
viewtopic.php?p=3590#p3590

and documentation http://wiki.pchart.net/doc.missing.points.html

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