stageThreeSVG = {
const svg = d3.create('svg')
.attr('viewBox', [0, 0, width, height])
svg.append('g')
.style('stroke', 'black')
.selectAll('rect')
.data(simpleData)
.join('rect')
.attr('fill', d => color(d.name))
.attr('x', d => x(d.name))
.attr('y', d => y(d.value))
.attr('height', d => y(0) - y(d.value))
.attr('width', x.bandwidth())
xAxis(svg.append('g'))
yAxis(svg.append('g'))
svg.append("text")
.attr("x", (width/2))
.attr("y", margin.top)
.attr("text-anchor", "middle")
.attr("font-size", "24px")
.attr("font-family", "sans-serif")
.text(`Bar Chart Example`)
svg.append("text")
.attr("x", (width/2))
.attr("y", height)
.attr("text-anchor", "middle")
.attr("font-size", "12px")
.attr("font-family", "sans-serif")
.text("x-axis label")
svg.append("text")
.attr("transform", "rotate(-90)")
.attr("x", -height/2)
.attr("y", 20)
.attr("text-anchor", "middle")
.attr("font-size", "12px")
.attr("font-family", "sans-serif")
.text("y-axis label")
return svg.node()
}