SetDrawXDataLabelLines

SetDrawXDataLabelLines — Draw data lines

Synopsis

$plot->SetDrawXDataLabelLines($dxdl)
    

Description

SetDrawXDataLabelLines enables drawing of data label lines. Data label lines are vertical lines drawn from the X data label positions to the data points. In the usual case, with the X axis at the bottom of the plot and the data labels just below the X axis, the data label lines would be drawn up from the X axis to the data points. Depending on the data label locations set with SetXDataLabelPos, the lines would be drawn down or up (or both, or neither) from the data points to the bottom or top of the plot area.

To use data label lines, you generally want to turn off ticks, tick labels, and the X grid lines.

Parameters

$dxdl

True to draw the data label lines, False to not draw the lines.

Notes

Data label lines only work with these plot types: lines, points, linepoints, and thinbarline. Data label lines don't work with these plot types: pie, area, squared, bars, and stackedbars, because the data label line would be covered or obscured by the data.

If a graph contains multiple data sets, data label lines drawn down will start at the maximum Y value for each X value. Data label lines drawn up will start at the minimum Y value for each X value.

By default, data label lines are not drawn.