Skip to content

Commit

Permalink
#209 hide scales for X
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Mar 31, 2016
1 parent a02ac78 commit 392b203
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions www/js/TimelineModalCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ angular.module('zmApp.controllers').controller('TimelineModalCtrl', ['$scope', '

// Chart.js Options
options = {

scales: {
xAxes:[{
display:false
}]
},

responsive: true,
scaleBeginAtZero : true,
Expand All @@ -171,6 +177,7 @@ angular.module('zmApp.controllers').controller('TimelineModalCtrl', ['$scope', '
barDatasetSpacing : 1,
pointDot:true,
pointDotRadius : 4,

hover:
{
mode:'single',
Expand All @@ -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,
Expand Down

0 comments on commit 392b203

Please sign in to comment.