MindFusion.Charting for JavaScript Programmer's Guide
PieSeries Constructor
See Also
 






Initializes a new instance of the PieSeries class.

Namespace: MindFusion.Charting
File: PieSeries.js

 Syntax

JavaScript  Copy Code

function PieSeries (values, innerLabels, outerLabels)

 Parameters

values

Type: List
A list of data values.

innerLabels

Type: List
A list of inner labels.

outerLabels

Type: List
A list of outer labels.

 Example

The following code creates a new PieSeries and sets it as the series to be rendered by an instance of the PieChart control:

JavaScript  Copy Code
pieChart.series = new Charting.PieSeries(
    new Collections.List([20, 60, 40, 55]),
    new Collections.List(["January", "February", "March", "April"]),
    new Collections.List(["January", "February", "March", "April"]));
pieChart.series.title = "Pie Series";

 See Also

PieSeries Constructor Overload List
PieSeries Class
MindFusion.Charting Namespace