chart = {
const svg = d3.select(DOM.svg(width, height));
svg.append('g').call(xAxis);
svg.append('g').call(yAxis);
svg
.append('g')
.attr('fill', '#006A4E')
.attr('opacity', 0.7)
.selectAll('circle')
.data(all_data)
.join('circle')
.attr('r', 5)
.attr('cx', d => x(new Date(d[0])))
.attr('cy', d => y(d[1]))
.append('title')
.text(d => `Pnt ${d[0]}`);
svg
.append("g")
.attr("fill", "gray")
.attr('opacity', 0.3)
.selectAll("rect")
.data(all_data)
.join("rect")
.attr("x", d => x_band(d[0]))
.attr("y", d => y(d[2]))
.attr("height", d => y(0) - y(d[2]))
.attr("width", x_band.bandwidth())
.append('title')
.text(d => `Rect ${d[0]}`);
return svg.node();
}