boundingBox = {
let svg = d3.select(DOM.svg(textWidth, textHeight))
.style("background-color", "#e0e0e0")
.style("outline", "thin dashed black")
.style("overflow", "visible")
let label = svg
.append('text')
.text(text)
.style("text-anchor", "start")
.attr("font-family", font)
.attr("font-weight","bold")
.attr("font-size",size+"pt")
.attr("fill", 'black')
.attr('y', textY )
return svg.node()
}