summaryrefslogtreecommitdiff
path: root/www/lib/angular-google-chart/sample.js
diff options
context:
space:
mode:
authorARC <arjunrc@gmail.com>2015-04-25 09:13:54 -0400
committerARC <arjunrc@gmail.com>2015-04-25 09:13:54 -0400
commit86e4e291bfda3365c0bb82bacb2b9990a86ce759 (patch)
treec9729d4bd5366656e39761319546593c02f0f709 /www/lib/angular-google-chart/sample.js
First Commit
Diffstat (limited to 'www/lib/angular-google-chart/sample.js')
-rw-r--r--www/lib/angular-google-chart/sample.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/www/lib/angular-google-chart/sample.js b/www/lib/angular-google-chart/sample.js
new file mode 100644
index 00000000..4ed46fff
--- /dev/null
+++ b/www/lib/angular-google-chart/sample.js
@@ -0,0 +1,25 @@
+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('/generic/:chartType', {
+ templateUrl: 'partials/generic.html',
+ controller: 'GenericChartCtrl'
+ }).
+ otherwise({
+ redirectTo: '/fat'
+ });
+ }]).value('googleChartApiConfig', {
+ version: '1',
+ optionalSettings: {
+ packages: ['corechart'],
+ language: 'fr'
+ }
+ });