jQuery.wijmo.wijpiechart Namespace > options type : seriesList Field |
Creates an array of series objects that contain data values and labels to display in the chart. Each series object consists of a label and a data attribute. See the Remarks section below for details.
Javascript (Usage) | |
---|---|
var value; // Type: array value = jQuery.wijmo.wijpiechart.options.seriesList; |
Javascript (Specification) | |
---|---|
|
$("#piechart").wijpiechart({ seriesList: [{ label: "Q1", legendEntry: true, data: 12, offset: 0 }, { label: "Q2", legendEntry: true, data: 21, offset: 0 }, { label: "Q3", legendEntry: true, data: 9, offset: 0 }, { label: "Q4", legendEntry: true, data: 29, offset: 10 }] });
Each series object in the seriesList array represents a wedge of the pie, and is defined with the following options.
A string to use as a label for the pie wedge. By default, this value appears in the legend entry for the series and in the hint when you mouse over a data point in the series. To prevent a series label from appearing in the legend, see legendEntry, below. If you do not provide a label for a series, the label for the series appears as "undefined" in the hint and in the legend.
Type: String
Default: ""
A numeric value that determines the relative size of the pie wedge.
Type: Number
Default: 0
If the chart type is pie, the number of pixels away from the center of the pie to pull out the wedge.
Type: Number
Default: 0
A value that indicates whether to display the label and color of the series in the legend of the chart. Set this value to false to leave a series out of the legend.
Type: Boolean
Default: true