diff --git a/public/app.js b/public/app.js index 8ba4440..5fe9fd5 100644 --- a/public/app.js +++ b/public/app.js @@ -111,10 +111,9 @@ const renderPoints = () => { } const setupGraph = ()=>{ - d3.select('svg'); - d3.select('svg') - .style('width', WIDTH) - .style('height', HEIGHT); + d3.select('#container') + .attr('width', WIDTH) + .attr('height', HEIGHT); xScale = d3.scaleTime(); xScale.range([0,WIDTH]);