Skip to content

Commit

Permalink
use full hight of the chart (removed 20px top padding); move x-axis l…
Browse files Browse the repository at this point in the history
…abels to below the line
  • Loading branch information
jasoncalabrese committed Mar 12, 2015
1 parent 967f519 commit 3a22002
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/js/client.js
Expand Up @@ -34,7 +34,7 @@ var app = {}, browserSettings = {}, browserStorage = $.localStorage;
, treatments
, profile
, cal
, padding = { top: 20, right: 10, bottom: 30, left: 10 }
, padding = { top: 0, right: 10, bottom: 30, left: 10 }
, opacity = {current: 1, DAY: 1, NIGHT: 0.5}
, now = Date.now()
, data = []
Expand Down Expand Up @@ -162,7 +162,7 @@ var app = {}, browserSettings = {}, browserStorage = $.localStorage;
.scale(xScale)
.tickFormat(d3.time.format(getTimeFormat(true)))
.ticks(4)
.orient('top');
.orient('bottom');

yAxis = d3.svg.axis()
.scale(yScale)
Expand Down Expand Up @@ -689,7 +689,7 @@ var app = {}, browserSettings = {}, browserStorage = $.localStorage;
focus.append('line')
.attr('class', 'now-line')
.attr('x1', xScale(new Date(now)))
.attr('y1', yScale(scaleBg(36)))
.attr('y1', yScale(scaleBg(30)))
.attr('x2', xScale(new Date(now)))
.attr('y2', yScale(scaleBg(420)))
.style('stroke-dasharray', ('3, 3'))
Expand Down

0 comments on commit 3a22002

Please sign in to comment.