// The observable version for some reason the text is behind rect
// Decreased opacity of the rect to solve the issue
grandparent.append("rect")
.attr("y",-margin.top)
.attr("width",width)
.attr("height",margin.top)
.style("opacity",0.2)
.style("fill","#d9d9d9")
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.