ChartDirector 5.1 (.NET Edition)

XYChart.addBarLayer


Usage

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

Description

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

Arguments

ArgumentDefaultDescription
data(Mandatory)An array of numbers representing the data set.
color-1The color to draw the bars. -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 bar layer.

Return Value

A BarLayer object representing the bar layer created.