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);
}