ChartDirector 7.1 (.NET Edition)

XYChart.addInterLineLayer


Usage

[C#]public InterLineLayer addInterLineLayer(LineObj line1, LineObj line2, int color12 [, int color21 ]);
[VB]Public Function addInterLineLayer(line1 As LineObj, line2 As LineObj, color12 As Integer [, color21 As Integer ]) As InterLineLayer

Description

Adds an inter-line layer the XYChart. An inter-line layer is used to fill the region between any two lines (straight lines, spline curves, step lines, etc).

This method expects two "line" objects representing the two lines. The line objects can be obtained using LineLayer.getLine (inherited by SplineLayer and StepLineLayer), TrendLayer.getLine, and Mark.getLine.

Arguments

ArgumentDefaultDescription
line1(Mandatory)An opaque line object representing the first line.
line2(Mandatory)An opaque line object representing the second line.
color12(Mandatory)The color used to fill the region of the lines when line1 > line2.
color21-1The color used to fill the region of the lines when line2 > line1. -1 means this color is the same as color12.

Return Value

An InterLineLayer object representing the inter-line layer created.