MVC4 Classic
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] }
          }],
See Also

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum |  Documentation Feedback