ChartDirector 7.0 (Perl Edition)

XYChart.getLayerByZ


Usage

getLayerByZ(zIndex)

Description

Gets a Layer object based on the order in which it is being drawn.

In ChartDirector, by default, the first layer added will stay on the top of the chart. The second layer will be added under the first layer, and so on. It means The layers will be drawn in the reverse order that they are added to the chart. The ordering can be configured with Layer.moveFront or Layer.moveBack.

Arguments

ArgumentDefaultDescription
zIndex(Mandatory)The z-index of the required layer. The z-index of the first layer drawn is 0. The z-index for the Nth layer drawn is N - 1.

Return Value

The Layer object at the specified z-order.