-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (67 loc) · 1.34 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<html>
<head>
<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 = new google.visualization.DataTable();
data.addColumn('string', 'Country');
data.addColumn('number', 'Download');
data.addRows([
['United States', 45],
['Brazil', 26.8],
['Germany', 12.8],
['Italy', 8.5],
['Vietnam', 6.2]
]);
var options = { backgroundColor: 'white',
colorAxis: { colors: ['#6289cb', '#446595'] }
};
var chart = new google.visualization.GeoChart(document.getElementById('mapContainer'));
chart.draw(data, options);
};
</script>
<style type="text/css">
body
{
color:#333333;
font-size:16px;
margin: 0 auto;
text-align: center;
}
h2
{
font-size: 28px;
text-align:center;
padding-top:40px;
}
a
{
text-decoration:none;
}
p
{
text-align:center;
}
#mainwrap
{
width: auto;
margin: 0 auto;
}
#mapContainer
{
height: 208px;
width: 282px;
border:1px solid #ccc;
border-width: 1px 1px 1px 1px;
margin:0 auto;
}
</style>
</head>
<body>
<div id="mainwrap">
<div id='mapContainer'></div>
</div>
</body>
</html>