chart = {
const svg = d3
.create("svg")
.attr("viewBox", [0, 0, width, height])
.style("overflow", "visible");
svg
.append("g")
.attr("class", "x-axis")
.call(xAxis);
svg
.append("g")
.attr("class", "y-axis")
.call(yAxis);
const line = svg
.selectAll('.line')
.data(dataGroup)
.join('path')
.attr("class", "line")
.attr("d", d => lineGenerator(d[1]))
.attr("stroke", d => colorScale(d[0]))
.style("fill", "none")
.style("stroke-width", 2)
.style("stroke-linecap", "round")
.style("mix-blend-mode", "multiply");
return svg.node();
}