summaryrefslogtreecommitdiff
path: root/www/templates/events-graphs.html
diff options
context:
space:
mode:
Diffstat (limited to 'www/templates/events-graphs.html')
-rw-r--r--www/templates/events-graphs.html28
1 files changed, 16 insertions, 12 deletions
diff --git a/www/templates/events-graphs.html b/www/templates/events-graphs.html
index 84aea168..2d488170 100644
--- a/www/templates/events-graphs.html
+++ b/www/templates/events-graphs.html
@@ -7,18 +7,20 @@
<!-- I'm calling the same controller function but with different parameters when
you switch between tabs -->
- <!-- All Events view -->
-
<!-- Oddly, unless I add a "div ng-controller" before each canvas
onClick handler does not work
-->
+ <!-- All Events view -->
+
<ion-tabs class="tabs-icon-top tabs-stable">
<ion-tab title="All" icon="ion-stats-bars" on-select="generateTCChart(0,'All Events',0)">
<ion-nav-view>
<ion-content class="has-header">
<div ng-controller="zmApp.EventsGraphsCtrl">
- <canvas tc-chartjs-bar chart-data="chart.data" chart-options="chart.options" ng-click="handleChartClick($event)" chart="chartwithbars">
+ <canvas tc-chartjs-bar chart-data="chart.data"
+ chart-options="chart.options"
+ ng-click="handleChartClick($event)" chart="chartwithbars">
</canvas>
</div>
</ion-content>
@@ -32,8 +34,10 @@
<ion-content>
<div ng-controller="zmApp.EventsGraphsCtrl">
<div style="overflow:scroll;">
- <canvas tc-chartjs-bar chart-data="chart.data" chart-options="chart.options"
- ng-click="handleChartClick($event)" chart="chartwithbars">
+ <canvas tc-chartjs-bar chart-data="chart.data"
+ chart-options="chart.options"
+ ng-click="handleChartClick($event)"
+ chart="chartwithbars">
</canvas>
</div>
</div>
@@ -64,16 +68,16 @@
<ion-nav-view>
<ion-content>
<div ng-controller="zmApp.EventsGraphsCtrl">
- <div style="overflow:scroll;">
- <canvas tc-chartjs-bar chart-data="chart.data"
- chart-options="chart.options" chart="chartwithbars"
- ng-click="handleChartClick($event)">
- </canvas>
- </div>
+ <div style="overflow:scroll;">
+ <canvas tc-chartjs-bar chart-data="chart.data"
+ chart-options="chart.options"
+ chart="chartwithbars"
+ ng-click="handleChartClick($event)">
+ </canvas>
+ </div>
</div>
</ion-content>
</ion-nav-view>
</ion-tab>
</ion-tabs>
-
</ion-view>