chart = {
const svg = d3.select(DOM.svg(width, height));
const g = svg.append("g");
g.selectAll('circle')
.data(before.features)
.join("circle")
.attr("r", 10)
.attr("cx", d => timeScaleBefore(d.properties.day))
.attr("cy", d => height - margin.bottom - (d.properties.id_day * 20))
.style("fill", "black");
svg.append("g")
.call(xAxisBefore);
svg.append("g")
.append("line")
.attr("x1", width/2 + margin.right)
.attr("x2", width/2 + margin.right)
.attr("y1", 0)
.attr("y2", height - margin.bottom)
.style("stroke", "red")
.style("stroke-width", 5);
const g2 = svg.append("g").attr("transform", `translate(${width/2}, 0)`);
g2.selectAll('circle')
.data(triggered.features)
.join("circle")
.attr("r", 10)
.attr("cx", d => timeScaleTriggered(d.properties.day))
.attr("cy", d => height - margin.bottom - (d.properties.id_day * 20))
.style("fill", "black");
svg.append("g")
.call(xAxisTriggered);
return svg.node();
}