summaryrefslogtreecommitdiff
path: root/www/lib/angular-google-chart/partials/annotation.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/partials/annotation.js
First Commit
Diffstat (limited to 'www/lib/angular-google-chart/partials/annotation.js')
-rw-r--r--www/lib/angular-google-chart/partials/annotation.js53
1 files changed, 53 insertions, 0 deletions
diff --git a/www/lib/angular-google-chart/partials/annotation.js b/www/lib/angular-google-chart/partials/annotation.js
new file mode 100644
index 00000000..4ba31aca
--- /dev/null
+++ b/www/lib/angular-google-chart/partials/annotation.js
@@ -0,0 +1,53 @@
+angular.module("google-chart-sample").controller("AnnotationChartCtrl", function ($scope, googleChartApiPromise) {
+ $scope.chartObject = {};
+
+ $scope.secondRow = [
+ {v: new Date(2314, 2, 16)},
+ {v: 13},
+ {v: 'Lalibertines'},
+ {v: 'They are very tall'},
+ {v: 25},
+ {v: 'Gallantors'},
+ {v: 'First Encounter'}
+ ];
+
+
+ $scope.chartObject.type = "AnnotationChart";
+
+ $scope.chartObject.data = {"cols": [
+ {id: "month", label: "Month", type: "date"},
+ {id: "kepler-data", label: "Kepler-22b mission", type: "number"},
+ {id: "kepler-annot", label: "Kepler-22b Annotation Title", type: "string"},
+ {id: "kepler-annot-body", label: "Kepler-22b Annotation Text", type: "string"},
+ {id: "desktop-data", label: "Gliese mission", type: "number"},
+ {id: "desktop-annot", label: "Gliese Annotation Title", type: "string"},
+ {id: "desktop-annot-body", label: "Gliese Annotaioon Text", type: "string"}
+ ], "rows": [
+ {c: [
+ {v: new Date(2314, 2, 15)},
+ {v: 19 },
+ {v: 'Lalibertines'},
+ {v: 'First encounter'},
+ {v: 7},
+ {v: undefined},
+ {v: undefined}
+ ]},
+ {c: $scope.secondRow},
+ {c: [
+ {v: new Date(2314, 2, 17)},
+ {v: 0},
+ {v: 'Lalibertines'},
+ {v: 'All crew lost'},
+ {v: 28},
+ {v: 'Gallantors'},
+ {v: 'Omniscience achieved'}
+
+ ]}
+ ]};
+
+ $scope.chartObject.options = {
+ displayAnnotations: true
+ };
+
+
+}); \ No newline at end of file