ChartDirector 7.1 (.NET Edition)

XYChart.addSplineLayer


Usage

[C#]public SplineLayer addSplineLayer([ double[] data [, int color [, string name ]]]);
[VB]Public Function addSplineLayer([ data As Double() [, color As Integer [, name As String ]]]) As SplineLayer

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.