ChartDirector 6.0 (C++ Edition)

Axis.setTitlePos


Usage

void setTitlePos(int alignment, int titleGap = 3);

Description

Sets the position of the axis title relative to the axis.

By default, the axis title will be drawn at the middle of the axis outside the plot area. You may change the location of the title. For example, instead of drawing the y-axis title at the middle of the axis, you may want draw it at the top of the axis.

Arguments

ArgumentDefaultDescription
alignment(Mandatory)The position of the title relative to the axis.
titleGap3The distance between the axis title and the axis in pixels.

Return Value

None