pChart 2.x forum http://wiki.pchart.net/forum/ |
|
LabelingMethod option of NONE http://wiki.pchart.net/forum/viewtopic.php?f=5&t=2162 |
Page 1 of 1 |
Author: | jtrobman [ Tue Sep 06, 2011 5:36 pm ] |
Post subject: | LabelingMethod option of NONE |
Can we add a value of FALSE for LabelingMethod used in isValidLabel() so that we can hide all labels? I have a lot of combo charts where I want the labels in the 2nd chart, but not the 1st. So I added the following 1 line to the isValidLabel function. Code: if ( $LabelingMethod === FALSE ) { return FALSE; } Code: function isValidLabel($Value,$LastValue,$LabelingMethod,$ID,$LabelSkip) { if ( $LabelingMethod === FALSE ) { return FALSE; } if ( $LabelingMethod == LABELING_DIFFERENT && $Value != $LastValue ) { return(TRUE); } if ( $LabelingMethod == LABELING_DIFFERENT && $Value == $LastValue ) { return(FALSE); } if ( $LabelingMethod == LABELING_ALL && $LabelSkip == 0 ) { return(TRUE); } if ( $LabelingMethod == LABELING_ALL && ($ID+$LabelSkip) % ($LabelSkip+1) != 1 ) { return(FALSE); } return(TRUE); } |
Author: | jean-damien [ Wed Sep 07, 2011 9:19 am ] | ||
Post subject: | Re: LabelingMethod option of NONE | ||
Very good idea, I've modified the drawscale function and added the RemoveXAxis parameter so you can skip the X axis but keep the vertical divisions. JD.
|
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |