From 63a2f675980c9257b321f5de63f7ebb69173b21a Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Sun, 10 Sep 2017 01:16:36 -0400 Subject: [PATCH] xScale --- app.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app.js b/app.js index d71467e..da8b0c2 100644 --- a/app.js +++ b/app.js @@ -31,3 +31,10 @@ d3.selectAll('circle').data(runs) .attr('cy', function(datum, index){ return yScale(datum.distance); }); + +var xScale = d3.scaleTime(); +xScale.range([0,WIDTH]); +xScale.domain([new Date('2017-10-1'), new Date('2017-10-31')]); + +console.log(xScale.domain()); +console.log(xScale.range());