我希望在印度各省使用 gvisGeoChart。
G <- gvisGeoChart(ageProfile, "State", "Males", options=list( region = "IN", displayMode="regions", resolution="provinces" ))
问问题
240 次
1 回答
0
您需要用实际值填充数据数组,但要让您了解它的外观:
function drawVisualization() {
var data = google.visualization.arrayToDataTable([
['State', 'Population'],,
['West Bengal', 24],
['Gujarat', 25],
['Assam', 29],
['Punjab', 23],
['Delhi', 30],
...
]);
var options = {
region: 'IN',
displayMode: 'regions',
resolution: 'provinces',
width: 640,
height: 480
};
var geochart = new google.visualization.GeoChart(
document.getElementById('visualization'));
geochart.draw(data, options);
};
于 2015-10-19T20:15:04.600 回答