IMSL C# Numerical Library

Pie.SetData Method 

Changes the data in a Pie chart object.

public virtual PieSlice[] SetData(
   double[] y
);

Parameters

y
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

Pie Class | Imsl.Chart2D Namespace