0
我使用下面的代碼來初始化我的圖表。但我想提供一套圖表選項列表中的用戶喜歡'SteppedAreaChart', 'LineChart', 'ColumnChart'
Google Charts如何根據其類型重新繪製圖表作爲列表提供?
var barChart = new google.visualization.ChartWrapper({
'chartType': 'BarChart',
'containerId': 'chart1',
'options': {
'width': '100%',
'height': 800,
'chartArea': {top: 0, right: 0, bottom: 0}
}
});
我要尋找一個解決方法 1. ControlWrapper接受圖表類型 2.然後重繪見下表相應
我試着使用statechange仍然沒有運氣。
barChart.setView({chartType: 'LineChart'});
barChart.draw();