Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mmol/elute #34

Merged
merged 5 commits into from
Jul 3, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions static/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
var retrospectivePredictor = true,
latestSGV,
treatments,
padding = {top: 20, right: 10, bottom: 80, left: 10},
opacity = {current: 1, DAY: 1, NIGHT: 0.8},
padding = { top: 20, right: 10, bottom: 30, left: 10 },
opacity = {current: 1, DAY: 1, NIGHT: 0.5},
now = Date.now(),
data = [],
dateFn = function (d) { return new Date(d.date) },
Expand Down Expand Up @@ -36,6 +36,8 @@

var useMetricBg = true; // true means use mmol/L, false means mg/dL

var useMetricBg = true; // true means use mmol/L, false means mg/dL

// create svg and g to contain the chart contents
var charts = d3.select('#chartContainer').append('svg')
.append('g')
Expand Down