From 872447d4640ba1247ec108360f9f4f321fa915a0 Mon Sep 17 00:00:00 2001 From: hadro Date: Mon, 18 Dec 2023 22:56:27 -0500 Subject: [PATCH] Fix year spacing --- moma/button2.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moma/button2.js b/moma/button2.js index c5c5d92..621b26d 100644 --- a/moma/button2.js +++ b/moma/button2.js @@ -703,7 +703,7 @@ svg // female .transition() .duration(1000) .attr("fill", d3.schemeSet2[0]) - .attr("x", d=> x(d.Year)) + .attr("x", d => x(d.Year)) .attr("width", 8) .attr('fill-opacity', "1") // .delay((d,i) => {return i*delaySet}) @@ -723,6 +723,7 @@ svg // female .transition() .duration(1000) .delay((d,i) => {return i*delaySet}) + .attr("x", d=> x(d.Year)) .attr("y", d => yF(0)) .attr("height", d => yF(d.female)-(height/2)) .attr("width", 8)