From a319c990f817b16904f02e8af93ee4253246c174 Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Sat, 26 Mar 2016 06:55:28 -0400 Subject: #209 more tweaks Former-commit-id: 4415a0bb81841d853234d1cd9dff2dbd378113e1 --- www/js/TimelineModalCtrl.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'www/js/TimelineModalCtrl.js') diff --git a/www/js/TimelineModalCtrl.js b/www/js/TimelineModalCtrl.js index b702c71e..5ac94431 100644 --- a/www/js/TimelineModalCtrl.js +++ b/www/js/TimelineModalCtrl.js @@ -88,8 +88,10 @@ angular.module('zmApp.controllers').controller('TimelineModalCtrl', ['$scope', ' { console.log ("Pushing " + event.event.Frame[i].TimeStamp +":"+ event.event.Frame[i].Score); items.push ({x:event.event.Frame[i].TimeStamp, - y:event.event.Frame[i].Score} - ); + y:event.event.Frame[i].Score, + eid: event.event.Event.Id, + fid: event.event.Frame[i].FrameId + }); } @@ -114,6 +116,12 @@ angular.module('zmApp.controllers').controller('TimelineModalCtrl', ['$scope', ' var container = document.getElementById('timeline-alarm-vis'); var Graph2d = new vis.Graph2d(container, dataset, options); $scope.dataReady = true; + + Graph2d.on('click',function (prop) { + console.log ("x="+prop.x); + console.log ("val="+JSON.stringify(prop.value)); + + }); } -- cgit v1.2.3