summaryrefslogtreecommitdiff
path: root/www/js/TimelineModalCtrl.js
diff options
context:
space:
mode:
authorpliablepixels <pliablepixels@gmail.com>2016-03-26 06:55:28 -0400
committerpliablepixels <pliablepixels@gmail.com>2016-03-26 06:55:28 -0400
commita319c990f817b16904f02e8af93ee4253246c174 (patch)
tree4faeb3f3b7f2ca2579589e585bd586795b69e82a /www/js/TimelineModalCtrl.js
parentbb83df06be032d2c51648fa02112c867cbe6fec3 (diff)
#209 more tweaks
Former-commit-id: 4415a0bb81841d853234d1cd9dff2dbd378113e1
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));
+
+ });
}