chart = {
const svg = d3.select(DOM.svg(width, height));
svg.selectAll('path')
.data([data])
.enter()
.append('path')
.attr('d', (d) => line(d))
.attr("stroke-width", 2)
.attr('stroke', "steelblue")
.attr('fill', "none");
svg.append("path")
.attr("fill", "#ccc")
.attr("fill-opacity", 0.75)
.attr("stroke", "none")
.attr("d", area(selectedArea));
svg.append("g").call(xAxis);
svg.append("g").call(yAxis);
return svg.node()
}