ChartDirector 6.0 (C++ Edition)

PlotArea.setAltBgColor


Usage

void setAltBgColor(bool horizontal, int color1, int color2, int edgeColor = -1);

Description

Sets alternating plot area background color.

This method can be used to specify two colors that will be used alternatively to draw horizontal or vertical bands on the plot area background, using major grid lines as boundaries for the bands.

Arguments

ArgumentDefaultDescription
horizontal(Mandatory)true means to use horizontal bands. false means to use vertical bands.
color1(Mandatory)The first color to be used as the alternating background color.
color2(Mandatory)The second color to be used as the alternating background color.
edgeColor-1The border color of the plot area. -1 means to use the default, which is LineColor. However, if the axes are configured in 4 quadrant mode (see XYChart.setAxisAtOrigin), the default will change to Transparent.

Return Value

None