diff options
| author | pliablepixels <pliablepixels@gmail.com> | 2016-04-02 12:59:55 -0400 |
|---|---|---|
| committer | pliablepixels <pliablepixels@gmail.com> | 2016-04-02 12:59:55 -0400 |
| commit | e9f7cbc52bf9d3e127424ae20be1e21b641b9836 (patch) | |
| tree | c460f3c6a5566a296a469f937b4173900d518ec2 /www/js | |
| parent | 438beda5deb45d30a14f9d0f107f8153b4f0eafd (diff) | |
redraw charts between types of graph #209
Former-commit-id: 8edc237dc086779396852d11e14995d4db64743a
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/TimelineModalCtrl.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/www/js/TimelineModalCtrl.js b/www/js/TimelineModalCtrl.js index 8a07cb4d..2e0d5c08 100644 --- a/www/js/TimelineModalCtrl.js +++ b/www/js/TimelineModalCtrl.js @@ -98,7 +98,15 @@ angular.module('zmApp.controllers').controller('TimelineModalCtrl', ['$scope', ' ld.timelineModalGraphType = $scope.graphType; ZMDataModel.setLogin(ld); + $timeout (function() { + + /* + if ($scope.graphType == 'alarmed') + tcGraph.data = data; + else + tcGraph.data = onlyalarm_data; + tcGraph.update();*/ tcGraph.destroy(); tcGraph = new Chart(ctx,{type:'bar', data: current_data, options:options}); }); |
