SpreadJS製品ヘルプ
pivotTables フィールド
GC.Spread.Sheets 名前空間 > Worksheet タイプ : pivotTables フィールド
ピボットテーブルマネージャ。
シンタックス
var instance = new GC.Spread.Sheets.Worksheet(name);
var value; // Type: PivotTableManager
value = instance.pivotTables;
var pivotTables : PivotTableManager;
使用例
//次のサンプルコードは、ピボットテーブルを作成します。
var pivotTableManager = sheet.pivotTables;
var sourceData = [["Date","Buyer","Type","Amount"],["01-Jan","Mom","Fuel",74],["15-Jan","Mom","Food",235],["17-Jan","Dad","Sports",20],["21-Jan","Kelly","Books",125],["02-Feb","Mom","Food",235],["20-Feb","Kelly","Music",20],["25-Feb","Kelly","Tickets",125]];
var options = {showRowHeader: true, showColumnHeader: true};
var myPivotTable = pivotTableManager.add("pivotTable_1", sourceData , 1, 1, GC.Spread.Pivot.PivotTableLayoutType.tabular, GC.Spread.Pivot.PivotTableThemes.medium2, option);
関連トピック

参照

Worksheet タイプ