Welcome to WordPress! This is your first post. Edit or delete it to take the first step in your blogging journey.
<div id="geochart_div" style="width: 100%; height: 500px;"></div>
https://www.gstatic.com/charts/loader.js
<script type="text/javascript">
google.charts.load('current', {
'packages':['geochart'],
});
google.charts.setOnLoadCallback(drawRegionsMap);
function drawRegionsMap() {
var data = google.visualization.arrayToDataTable([
['Country', 'Visitors'],
['United Kingdom', 1200],
['United States', 900],
['India', 1500],
['France', 400]
]);
var options = {
colorAxis: {colors: ['#e0f3ff', '#0059b3']},
backgroundColor: '#f5f5f5'
};
var chart = new google.visualization.GeoChart(
document.getElementById('geochart_div')
);
chart.draw(data, options);
}
</script>
Welcome to WordPress! This is your first post. Edit or delete it to take the first step in your blogging journey.
Leave a Reply