From 5ade5e727224c21785ccc707281f6f62ff20bda7 Mon Sep 17 00:00:00 2001 From: ericj <eric.jaekel@web.de> Date: Fri, 13 Dec 2024 00:50:33 +0100 Subject: [PATCH] code cleanup --- time-series.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/time-series.js b/time-series.js index 89cd2bd..39b0042 100644 --- a/time-series.js +++ b/time-series.js @@ -86,7 +86,9 @@ d3.csv("schengen_data.csv").then((data) => { const legend = svg .selectAll(".legend-group") .data([null]) - .enter().append("g").attr("class", "legend-group") + .enter() + .append("g") + .attr("class", "legend-group") .attr("transform", `translate(${width - 150}, 20)`) .selectAll(".legend-item") .data(Array.from(allStates)) -- GitLab