From 3e101778cdfef12c1f262532bb8ec8b397089f84 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Sun, 10 Sep 2017 14:32:18 -0400 Subject: [PATCH] left axis --- app.css | 3 +++ app.js | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/app.css b/app.css index 1a0423a..56aefa9 100644 --- a/app.css +++ b/app.css @@ -1,3 +1,6 @@ +body { + margin: 20px 40px; +} circle { r: 5; fill: black; diff --git a/app.js b/app.js index d90c7b2..acf7407 100644 --- a/app.js +++ b/app.js @@ -58,3 +58,8 @@ d3.select('svg') .append('g') .call(bottomAxis) .attr('transform', 'translate(0,'+HEIGHT+')'); + +var leftAxis = d3.axisLeft(yScale); +d3.select('svg') + .append('g') + .call(leftAxis);