ChartDirector 7.0 (ASP/COM/VB Edition)

XYChart.addSplineLayer


Usage

addSplineLayer([ data [, color [, name ]]])

Description

Adds a spline layer to the XYChart.

In a spline layer, the data points are connected together using cardinal spline curves (as opposed to straight lines). The "monotonicity" of the spline curve can be configured by using SplineLayer.setMonotonicity. The "tension" of the curve can be configured using SplineLayer.setTension.

Arguments

ArgumentDefaultDescription
data[Empty_Array]An array of numbers representing the data set.
color-1The color to draw the spline line. -1 means that the color is automatically selected from the palette.
name""The name of the data set. The name will be used in the legend box, if one is available. An empty string means the data set has no name.

Return Value

A SplineLayer object representing the spline layer created.