通常のチャート
var chartdata0 = { "config": { "title": "通常のチャート", "type": "line", "useMarker": "css-maru", // "paddingBottom":120, "useVal": "yes" }, "data": [ ["年度",2007,2008,2009,2010,2011,2012,2013], ["紅茶",335,352,527,448,775,835,979], ["コーヒー",400,385,436,373,357,688,800], ["ジュース",160,252,588,252,567,502,660], ["ウーロン",100,183,352,120,302,400,1112] ] };
プロパティ "changeRC": "yes" を設定して行と列を変えた場合
var chartdata1 = { "config": { "title": "\"changeRC\": \"yes\"", "subTitle": "チャートデータの行と列を交換する", "type": "line", "changeRC": "yes", "useMarker": "css-maru", "useVal": "yes" }, "data": [ ["年度",2007,2008,2009,2010,2011,2012,2013], ["紅茶",335,352,527,448,775,835,979], ["コーヒー",400,385,436,373,357,688,800], ["ジュース",160,252,588,252,567,502,660], ["ウーロン",100,183,352,120,302,400,1112] ] };
メソッド ccchart.toggleRC(id, チャートデータ[, callback]) で列と行を動的に切り替える
var chartdata2 = { "config": { "title": "toggleRC(id, op, callback)", "subTitle": "チャートデータの行と列を交互に交換するメソッドィ", "type": "line", "useMarker": "css-maru", "useVal": "yes" }, "data": [ ["年度",2007,2008,2009,2010,2011,2012,2013], ["紅茶",335,352,527,448,775,835,979], ["コーヒー",400,385,436,373,357,688,800], ["ジュース",160,252,588,252,567,502,660], ["ウーロン",100,183,352,120,302,400,1112] ] };