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', 907, 51], ['Australia', 106, 6], ['Germany', 101, 6], ['Canada', 88, 5], ['United Kingdom of Great Britain and Northern Ireland', 78, 4], ['Switzerland', 58, 3], ['Hong Kong', 34, 2], ['Singapore', 29, 2], ['Austria', 28, 2], ['Netherlands', 24, 1], ['Israel', 21, 1], ['Korea, Republic of', 20, 1], ['France', 19, 1], ['Norway', 18, 1], ['Japan', 17, 1], ['Thailand', 17, 1], ['Taiwan, Province of China', 17, 1], ['Denmark', 16, 1], ['Hungary', 12, 1], ['Philippines', 11, 1], ['China', 11, 1], ['Spain', 11, 1], ['United Arab Emirates', 9, 1], ['Saudi Arabia', 9, 1], ['Kuwait', 8, 0], ['Sweden', 8, 0], ['Malaysia', 8, 0], ['Indonesia', 8, 0], ['New Zealand', 6, 0], ['Romania', 6, 0], ['Portugal', 6, 0], ['Italy', 6, 0], ['South Africa', 5, 0], ['Ireland', 5, 0], ['Belgium', 4, 0], ['Mexico', 4, 0], ['Greece', 4, 0], ['Czechia', 4, 0], ['Cyprus', 3, 0], ['Bahrain', 2, 0], ['Gibraltar', 2, 0], ['Macao', 2, 0], ['Malta', 2, 0], ['Puerto Rico', 2, 0], ['Qatar', 2, 0], ['Bulgaria', 2, 0], ['Poland', 2, 0], ['Slovakia', 2, 0], ['Finland', 1, 0], ['Costa Rica', 1, 0], ['Latvia', 1, 0], ['New Caledonia', 1, 0], ['Russian Federation', 1, 0], ['Luxembourg', 1, 0], ['Estonia', 1, 0], ['Nepal', 1, 0], ['Angola', 1, 0], ['Chile', 1, 0], ['Viet Nam', 1, 0], ['Brazil', 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); };