-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (50 loc) · 1.42 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Travels</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="chart_div" style="width: 100%; height:800px">
</div>
<script type='text/javascript' src='https://www.google.com/jsapi'></script>
<script type='text/javascript'>
google.load('visualization', '1', { 'packages': ['geochart'] });
google.setOnLoadCallback(drawRegionsMap);
function drawRegionsMap() {
var data = google.visualization.arrayToDataTable([
['Country', 'x'],
['United States', 1],
['France', 1],
['Spain', 1],
['Portugal', 1],
['England', 1],
['Belgium', 1],
['Netherlands', 1],
['Czech Republic', 1],
['Austria', 1],
['Luxembourg', 1],
['United States', 1],
['Mexico', 1],
['Switzerland',1],
['Italy', .3],
]);
var options = {
backgroundColor: { stroke: '#c2302c' },
colorAxis: { minValue: 0, maxValue: 1, colors: ['#000', '#c2302c'] },
datalessRegionColor: '#000',
displayMode: 'regions',
enableRegionInteractivity: true,
legend: 'none',
magnifyingGlass: { enable: true, zoomFactor: 7.5 }
};
var chart = new google.visualization.GeoChart(document.getElementById('chart_div'));
chart.draw(data, options);
};
</script>
</body>
</html>