我正在使用Google Visualization API。我想使用ChartWrapper方法。谁能给我一个使用JSON格式获取数据的非常简单的例子?
发布于 2018-05-17 22:51:27
// Create an empty ChartWrapper and set its properties
var chart1 = new google.visualization.ChartWrapper();
chart1.setChartType('Table');
chart1.setContainerId('chart1_div');
// To set a DataView for the ChartWrapper, use
// DataView.toJSON()function.
// There is a no need to set DataTable for the ChartWrapper.
chart1.setView(dataView1.toJSON());https://stackoverflow.com/questions/9494142
复制相似问题