fixing width/height in FF

main
Matthew Huntington 2 years ago
parent ec8786539e
commit 4d77e2fc78

@ -111,10 +111,9 @@ const renderPoints = () => {
} }
const setupGraph = ()=>{ const setupGraph = ()=>{
d3.select('svg'); d3.select('#container')
d3.select('svg') .attr('width', WIDTH)
.style('width', WIDTH) .attr('height', HEIGHT);
.style('height', HEIGHT);
xScale = d3.scaleTime(); xScale = d3.scaleTime();
xScale.range([0,WIDTH]); xScale.range([0,WIDTH]);

Loading…
Cancel
Save