ChartDirector 6.1 (Java Edition)

XYChart.addLineLayer


Usage

public LineLayer addLineLayer(double[] data [, int color [, String name [, int depth ]]])

Description

Adds a line layer to the XYChart, and specify the data set to use for drawing the line.

Arguments

ArgumentDefaultDescription
data(Mandatory)An array of numbers representing the data set.
color-1The color to draw the 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.
depth0The 3D depth of the line layer.

Return Value

A LineLayer object representing the line layer created.