SetXDataLabelPos

SetXDataLabelPos — Where to draw the X data labels

Synopsis

$plot->SetXDataLabelPos($xdlp)
    

Description

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.

Parameters

$xdlp

A string indicating the desired position for the X data labels:

PositionDescription
plotdownData labels below the plot
plotupData labels above the plot
bothData labels both below and above the plot
noneNo data labels

Notes

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.