summaryrefslogtreecommitdiff
path: root/www/js/TimelineModalCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/TimelineModalCtrl.js')
-rw-r--r--www/js/TimelineModalCtrl.js12
1 files changed, 10 insertions, 2 deletions
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));
+
+ });
}