Widgets > Chart Widgets > wijbarchart > 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, three series are defined with string X data and numerical Y data. The X and Y axes appear inverted since it’s a Bar chart.
seriesList: [{
label: "West",
legendEntry: true,
data: { x: ['Desktops', 'Notebooks', 'AIO', 'Tablets', 'Phones'], y: [5, 3, 4, 7, 2] }
}, {
label: "Central",
legendEntry: true,
data: { x: ['Desktops', 'Notebooks', 'AIO', 'Tablets', 'Phones'], y: [2, 2, 3, 2, 1] }
}, {
label: "East",
legendEntry: true,
data: { x: ['Desktops', 'Notebooks', 'AIO', 'Tablets', 'Phones'], y: [3, 4, 4, 2, 5] }
}],