SetXDataLabelPos — Where to draw the X data labels
$plot->SetXDataLabelPos($xdlp
)
SetXDataLabelPos
determines where the X data labels
are drawn. The labels can be drawn at the bottom of the plot (below the X
axis), above the plot, in both positions, or neither.
$xdlp
A string indicating the desired position for the X data labels:
Position | Description |
---|---|
plotdown | Data labels below the plot |
plotup | Data labels above the plot |
both | Data labels both below and above the plot |
none | No data labels |
The default position for X data labels is below the plot.
Calling this function to position the data labels (that is, with parameter other than 'none') turns off X tick labels as if SetXTickLabelPos was called with parameter 'none', to prevent overlapping tick and data labels.
This applies only to data labels. For tick labels, see SetXTickLabelPos.
If X data lines are enabled with SetDrawXDataLabelLines, then SetXDataLabelPos() also determines the direction of the lines which are drawn from the data points.