Changes the data in a Pie chart object.

Namespace: Imsl.Chart2D
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public virtual PieSlice[] SetData(
	double[] y
)
Visual Basic (Declaration)
Public Overridable Function SetData ( _
	y As Double() _
) As PieSlice()
Visual C++
public:
virtual array<PieSlice^>^ SetData(
	array<double>^ y
)

Parameters

y
Type: array< System..::.Double >[]()[]
A double[] which contains the values for the pie chart.

Return Value

A PieSlice[] array containing the updated PieSlice.

Remarks

If the number of slices is unchanged then the existing pie slice array, defined by the attribute "PieSlice" in this node, is reused. If the number is different, a new array is allocated, using the existing PieSlice elements to initialize the new array.

See Also