From 4d77e2fc78da656f051085543014653345ae62c4 Mon Sep 17 00:00:00 2001 From: Matthew Huntington Date: Thu, 12 Oct 2023 11:27:08 -0400 Subject: [PATCH] fixing width/height in FF --- public/app.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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]);