Wijmo UI for the Web
seriesList Option
wijmo.chart.wijcompositechart Namespace > options type : seriesList Option

Default value: []

An array collection that contains the data that will be displayed by the chart."

Syntax
$(function () {
    
    // Get value
    var returnsValue; // Type:  array
    returnsValue = $(".selector").wijcompositechart("option", "seriesList");
    
    // Set value
    var newValue; // Type:  array
    $(".selector").wijcompositechart("option", "seriesList", newValue);
        
});
var seriesList : array;
Example
$("#compositechart").wijcompositechart({
            seriesList: [{
                type: "bar",
                label: "Q1",
                legendEntry: true,
                data: {
                    x: [1, 2, 3, 4, 5],
                    y: [12, 21, 9, 29, 30]
                }}, {
                type: "bar",
                label: "Q2",
                legendEntry: true,
                data: {
                    xy: [1, 21, 2, 10, 3, 19, 4, 31, 5, 20]
                }}, {
                type: "line",
                label: "Q3",
                legendEntry: true,
                data: {
                    x: [1, 2, 3, 4, 5],
                    y: [12, 21, 9, 29, 30]
                }}, {
                type: "pie",
                label: "title for pie chart",
                legendEntry: false,
                data: [{
                    label: "Q4",
                    data: 12,
                    offset: 15
                }, {
                    label: "Q5",
                    data: 21,
                    offset: 0
                }, {
                    label: "Q5",
                    data: 21,
                    offset: 0
                }],
                center: {
                    x: 150,
                    y: 150
                },
                radius: 100
                }
            }]
            OR
            seriesList: [{
                type: "bar"
                label: "Q1",
                legendEntry: true,
                data: {
                    x: ["A", "B", "C", "D", "E"],
                    y: [12, 21, 9, 29, 30]
                }
            }, {
                type: "line"
                label: "Q1",
                legendEntry: true,
                data: {
                    x: ["A", "B", "C", "D", "E"],
                    y: [12, 21, 9, 29, 30]
                }
            }
            ]
            OR
            seriesList: [{
                type: "bar",
                label: "Q1",
                legendEntry: true,
                data: {
                    x: [new Date(1978, 0, 1), new Date(1980, 0, 1), 
                        new Date(1981, 0, 1), new Date(1982, 0, 1), 
                        new Date(1983, 0, 1)],
                    y: [12, 21, 9, 29, 30]
                }
            }, {
                type: "bar",
                label: "Q2",
                legendEntry: true,
                data: {
                    x: [new Date(1978, 0, 1), new Date(1980, 0, 1), 
                        new Date(1981, 0, 1), new Date(1982, 0, 1), 
                        new Date(1983, 0, 1)],
                    y: [10, 25, 5, 25, 35]
                }
            }]
 });
See Also

Reference

options type
wijcompositechart jQuery Widget