-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathSimple_Map.html
More file actions
56 lines (54 loc) · 2.08 KB
/
Simple_Map.html
File metadata and controls
56 lines (54 loc) · 2.08 KB
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
<!DOCTYPE html>
<html lang="en" ng-app="MyApp">
<head>
<meta charset="UTF-8">
<title>Anychart AngularJS plugin demo.</title>
<script src="../node_modules/angular/angular.min.js"></script>
<script src="../node_modules/anychart/dist/js/anychart-base.min.js"></script>
<script src="../node_modules/anychart/dist/js/anychart-map.min.js"></script>
<script src="../node_modules/anychart/dist/js/anychart-ui.min.js"></script>
<script src="../node_modules/anychart/dist/js/anychart-exports.min.js"></script>
<script src="../dist/anychart-angularjs.min.js"></script>
<link rel="stylesheet" href="../node_modules/anychart/dist/css/anychart-ui.min.css">
<link rel="stylesheet" href="../node_modules/anychart/dist/fonts/css/anychart-font.min.css">
<script src="res/australia.js"></script>
<style>
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
</style>
<script>
(function() {
'use strict';
angular
.module('MyApp', ['anychart-angularjs'])
.controller('MyCtrl', ['$scope', function($scope) {
$scope.mySeriesData = anychart.data.set([
{'id': 'AU.WA', 'value': 300},
{'id': 'AU.JB', 'value': 230},
{'id': 'AU.NS', 'value': 240},
{'id': 'AU.VI', 'value': 275},
{'id': 'AU.NT', 'value': 130},
{'id': 'AU.TS', 'value': 190},
{'id': 'AU.CT', 'value': 100},
{'id': 'AU.SA', 'value': 305},
{'id': 'AU.QL', 'value': 190}
]);
}]);
})();
</script>
</head>
<body ng-controller="MyCtrl">
<div
anymap
ac-type="choropleth"
ac-data="mySeriesData"
ac-geo-data="anychart.maps.australia"
ac-title="Simple Map Demo"
style="width: 100%; height: 100%">
</div>
</body>
</html>