ChartDirector 7.0 (Python Edition)

XYChart.addAreaLayer2


Usage

addAreaLayer2([ dataCombineMethod [, depth ]])

Description

Adds an empty area chart layer to the XYChart.

This method is typically used to add multiple data sets to a single bar layer. First an empty area chart layer is created, then the data sets can be added using Layer.addDataSet.

The dataCombineMethod parameter specifies how to combine the data sets together in the area layer. The followings methods are supported:

ConstantValueDescription
Stack1The data sets are combined by stacking up the areas.
Percentage4The data sets are combined similar to stacked area, except that the data are scaled so that the area always stacked up to 100. An area strip within the stacked area therefore represents the percentage of the data item relative to sum of all the data items in the stacked area.

Arguments

ArgumentDefaultDescription
dataCombineMethodStackThe method to combine the data sets together in the area layer.
depth0The 3D depth of the area layer.

Return Value

An AreaLayer object representing the area layer created.