ChartDirector 7.0 (Python Edition)

DataSet.setDataColor


Usage

setDataColor(dataColor [, edgeColor [, shadowColor [, shadowEdgeColor ]]])

Description

Sets the colors used to draw the data set.

The usage of the colors depend on the layer type. For example, in a bar layer, the dataColor and edgeColor are used as the fill and border color of the bar. In a line layer, the dataColor is used as the color of the line, while the edgeColor is used as the border of the line for 3D lines, and is ignored for 2D lines..

Arguments

ArgumentDefaultDescription
dataColor(Mandatory)The main color used to draw the data set.
edgeColor-1The color used to draw the edges or borders of the data set, if any. -1 means that the edges are drawn using the default border color of the layer (defined using Layer.setBorderColor).
shadowColor-1The color to use to draw 3D shadows of the data set, if any. -1 means the shadow color will be a "darker" version of the dataColor, created by reducing the RGB intensities of the dataColor in half.
shadowEdgeColor-1The color to use to draw edges of the 3D shadows of the data set, if any. -1 means the shadow color will be a "darker" version of the edgeColor, created by by reducing the RGB intensities of the edgeColor in half.

Return Value

None