{
const canvas = d3.select(DOM.svg(width, height))
canvas.append("g")
.attr("class", "axis")
.attr("transform", "translate(0," + (height-margin.bottom) + ")")
.call(xAxis)
.selectAll("text")
.attr("y", 0)
.attr("x", 9)
.attr("dy", ".35em")
.attr("transform", "rotate(90)")
.style("text-anchor", "start");
canvas.append("text")
.attr("x", width/2)
.attr("y", height-5)
.style("text-anchor", "middle")
.text("Months - 2019")
canvas.append("g")
.attr("class", "axis")
.attr("transform", "translate(" + margin.left + ",0)")
.call(yAxis)
canvas.append("text")
.attr("transform", "rotate(-90,15,"+(height/2)+")")
.attr("x", 15)
.attr("y", height/2)
.style("text-anchor", "middle")
.text("Interest")
canvas.append("g").selectAll("rect")
.data(data)
.join("rect")
.attr("x", (d,i)=>x(d.date))
.attr("y",(d,i)=>y(d.interest))
.attr("width",x.bandwidth)
.attr("height", d => (height-margin.bottom) - y(d.interest))
.style("stroke-width", 2)
.style("stroke","black")
.style("fill", "steelblue")
return canvas.node();
}