diff options
| author | pliablepixels <pliablepixels@gmail.com> | 2016-03-31 16:47:33 -0400 |
|---|---|---|
| committer | pliablepixels <pliablepixels@gmail.com> | 2016-03-31 16:47:33 -0400 |
| commit | 5e272ca74f024717e4d9d7229ac22864b4d4bcba (patch) | |
| tree | 20b02702c31c4978b75f156dccc5feaaa3944440 /www/js/TimelineModalCtrl.js | |
| parent | c7373686044592f576bc638230ae0f2fcb0de062 (diff) | |
#209 hide scales for X
Former-commit-id: 7d8731433fddd6f7baba24a1b827a2a18bc76499
Diffstat (limited to 'www/js/TimelineModalCtrl.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 710905df..9895bc4c 100644 --- a/www/js/TimelineModalCtrl.js +++ b/www/js/TimelineModalCtrl.js @@ -159,6 +159,12 @@ angular.module('zmApp.controllers').controller('TimelineModalCtrl', ['$scope', ' // Chart.js Options options = { + + scales: { + xAxes:[{ + display:false + }] + }, responsive: true, scaleBeginAtZero : true, @@ -171,6 +177,7 @@ angular.module('zmApp.controllers').controller('TimelineModalCtrl', ['$scope', ' barDatasetSpacing : 1, pointDot:true, pointDotRadius : 4, + hover: { mode:'single', @@ -188,6 +195,7 @@ angular.module('zmApp.controllers').controller('TimelineModalCtrl', ['$scope', ' for (var i=0; i< event.event.Frame.length; i++) { data.labels.push(event.event.Frame[i].TimeStamp); + //data.labels.push(' '); data.datasets[0].data.push(event.event.Frame[i].Score); data.datasets[0].frames.push({x:event.event.Frame[i].TimeStamp, y:event.event.Frame[i].Score, |
