1
I’m having a small problem with the geochart, the other charts load normal, but not the geo, it even shows the region of Brazil, but does not populate the regions. Follows the code:
google.charts.load("44", {packages:["corechart"]});
google.charts.setOnLoadCallback(chartMapDoacoes);
function chartMapDoacoes(){
var data = google.visualization.arrayToDataTable([
[`city`, `numedo de doacoes`],
[`Barueri`, `120442`],
[`Carapicuiba`, `231298`],
[`Itapevi`, `213876`],
[`Jandira`, `128396`],
[`Sao paulo`, `419226`],
[`Campinas`, `192381`],
[`Jundiai`, `391912`],
[`Jarinu`, `6398212`],
]);
var options = {
region: 'BR'
}
var chart = new google.visualization.GeoChart(document.getElementById('chart-geo'));
chart.draw(data, options);
}
and HTML:
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<body>
<div id="chart-geo"></div>
</body>
if possible put only geo separated from everything , and beyond your script html please so that we can test
– Jasar Orion