Skip to content

Commit

Permalink
just show glucose
Browse files Browse the repository at this point in the history
  • Loading branch information
pikesley committed Feb 16, 2016
1 parent 8509ebd commit f7bb47e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions app/views/charts/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
x: points(json['glucose'], 'value')['x'],
y: points(json['glucose'], 'value')['y'],
type: 'scatter',
name: 'Glucose'
name: 'Glucose',
line: {
color: '#fa5100'
}
}

var meds = {
Expand Down Expand Up @@ -76,7 +79,7 @@
color: '#7f7f7f'
},
},
yaxis2: {
/* yaxis2: {
overlaying: 'y',
side: 'right',
title: 'Insulin (Units)',
Expand All @@ -86,8 +89,8 @@
color: '#7f7f7f'
},
// https://plot.ly/python/overview/
tickcolor: '#f00' # close
},
tickcolor: '#f00'
},*/
margin: {
l: 50, r: 40
},
Expand All @@ -99,7 +102,7 @@
}
}

datas = [bg, meds] //, carbs]
datas = [bg] //,meds, carbs]

Plotly.newPlot('chart', datas, layout, { displayModeBar: false })
}
Expand Down

0 comments on commit f7bb47e

Please sign in to comment.