Widgets > Chart Widgets > wijpiechart > wijpiechart How To > Define the SeriesList |
The following code shows how to use the seriesList array collection to include the data to be charted. In this example, five series are defined with numerical data.
seriesList: [{
label: "MacBook Pro",
legendEntry: true,
data: 46.78,
offset: 15
}, {
label: "iMac",
legendEntry: true,
data: 23.18,
offset: 0
}, {
label: "MacBook",
legendEntry: true,
data: 20.25,
offset: 0
}, {
label: "Mac Pro",
legendEntry: true,
data: 5.41,
offset: 0
}, {
label: "Mac mini",
legendEntry: true,
data: 3.44,
offset: 0
}],