From e9f7cbc52bf9d3e127424ae20be1e21b641b9836 Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Sat, 2 Apr 2016 12:59:55 -0400 Subject: redraw charts between types of graph #209 Former-commit-id: 8edc237dc086779396852d11e14995d4db64743a --- www/js/TimelineModalCtrl.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'www/js/TimelineModalCtrl.js') 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}); }); -- cgit v1.2.3