google.charts.load('current', { 'packages': ['geochart'], // Note: you will need to get a mapsApiKey for your project. // See: https://developers.google.com/chart/interactive/docs/basic_load_libs#load-settings 'mapsApiKey': 'AIzaSyDpR5tzYRMsd7c3gLRScOtEVoAVAcx-AJw' }); google.charts.setOnLoadCallback(drawMarkersMap); function drawMarkersMap() { var data = google.visualization.arrayToDataTable([ ['Country', 'Orders', 'Percentage'],['United States of America', 783, 50], ['Australia', 105, 7], ['Germany', 86, 6], ['Canada', 79, 5], ['United Kingdom of Great Britain and Northern Ireland', 62, 4], ['Switzerland', 52, 3], ['Hong Kong', 35, 2], ['Singapore', 28, 2], ['Netherlands', 22, 1], ['Austria', 21, 1], ['Korea, Republic of', 20, 1], ['Israel', 20, 1], ['France', 18, 1], ['Taiwan, Province of China', 18, 1], ['Japan', 18, 1], ['Thailand', 16, 1], ['Norway', 13, 1], ['Philippines', 12, 1], ['China', 11, 1], ['United Arab Emirates', 10, 1], ['Denmark', 9, 1], ['Malaysia', 8, 1], ['Saudi Arabia', 7, 0], ['Sweden', 7, 0], ['Kuwait', 7, 0], ['Spain', 7, 0], ['Indonesia', 6, 0], ['Hungary', 6, 0], ['South Africa', 6, 0], ['New Zealand', 6, 0], ['Romania', 5, 0], ['Ireland', 5, 0], ['Mexico', 5, 0], ['Belgium', 4, 0], ['Russian Federation', 4, 0], ['Portugal', 4, 0], ['Cyprus', 3, 0], ['Greece', 3, 0], ['Czechia', 3, 0], ['Italy', 3, 0], ['Finland', 2, 0], ['Bahrain', 2, 0], ['Gibraltar', 2, 0], ['Macao', 2, 0], ['Malta', 2, 0], ['Puerto Rico', 2, 0], ['Qatar', 2, 0], ['Poland', 1, 0], ['Slovenia', 1, 0], ['Monaco', 1, 0], ['Costa Rica', 1, 0], ['Latvia', 1, 0], ['New Caledonia', 1, 0], ['Luxembourg', 1, 0], ['Estonia', 1, 0], ['Nepal', 1, 0], ['Bulgaria', 1, 0], ]); var options = { backgroundColor: { fill: 'rgb(40,40,40)', stroke: 'rgb(0,0,0)', strokeWidth: 5, }, region: 'world', displayMode: 'markers', colorAxis: {colors: ['green', 'blue']}, sizeAxis: { minValue: 0, maxValue: 100, minSize: 5, maxSize: 30 }, }; var chart = new google.visualization.GeoChart(document.getElementById('chart_div')); chart.draw(data, options); };