forked from angular-google-chart/angular-google-chart
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsample.js
42 lines (41 loc) · 1.48 KB
/
sample.js
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
/* global angular */
angular.module("google-chart-sample", ["ngRoute", "googlechart"]).config(['$routeProvider',
function ($routeProvider) {
$routeProvider.
when('/fat', {
templateUrl: 'partials/fat.html',
controller: 'FatChartCtrl'
}).
when('/annotation', {
templateUrl: 'partials/annotation.html',
controller: 'AnnotationChartCtrl'
}).
when('/gauge', {
templateUrl: 'partials/gauge.html',
controller: 'GaugeChartCtrl'
}).
when('/map', {
templateUrl: 'partials/map.html',
controller: 'MapChartCtrl'
}).
when('/generic/:chartType', {
templateUrl: 'partials/generic.html',
controller: 'GenericChartCtrl'
}).
otherwise({
redirectTo: '/fat'
});
}])
.config(["agcLibraryLoaderProvider", function(agcLibraryLoaderProvider){
agcLibraryLoaderProvider.setLoader("gstatic");
}])
.config(["agcGstaticLoaderProvider", function(gstaticProvider){
gstaticProvider.addPackage("map");
//gstaticProvider.setOption("mapsApiKey", "INSERT YOUR KEY HERE");
}]);/*.value('googleChartApiConfig', {
version: '1',
optionalSettings: {
packages: ['corechart', 'gauge'],
language: 'fr'
}
});*/