ChartDirector 7.1 (C++ Edition)

Layer.alignLayer


Usage

void alignLayer(const Layer *layer, int dataSet);

Description

Aligns the layer with a data set of another bar chart layer in Side layout.

The Side layout is a layout method specific to the bar chart layer. In this layout method, multiple bars belonging to the same x-position are laid out side by side. Thus the bars are not centered exactly on the x-position, but are shifted. The shift amount depends on the data set numbers of the bars.

In some cases, it may be necessary to overlay another layer (eg. a line chart layer, or a box-whisker chart layer) on top of the bars. The alignLayer method ensures the data points are shifted by the same amount as a given data set on a given BarLayer.

Arguments

ArgumentDefaultDescription
layer(Mandatory)The BarLayer which contains the bars to synchronize with.
dataSet(Mandatory)The data set of the bars to synchronize with.

Return Value

None