Wijmo UI for the Web
seriesList フィールド

デフォルト値: []

チャートに表示されるデータを含む配列のコレクション。

シンタックス
Javascript (Usage) 
$(function () {
    
    //値を取得する
    var returnsValue; //タイプ: array
    returnsValue = $(".selector").wijcompositechart("option", "seriesList");
    
    //値を設定します
    var newValue; //タイプ: array
    $(".selector").wijcompositechart("option", "seriesList", newValue);
        
});
Javascript (Specification) 
var seriesList : array;
使用例
$("#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] } }] });

関連トピック

参照

options タイプ
wijcompositechart メソッド

 

 


Copyright © GrapeCity inc. All rights reserved.