I am making a vertical bar chart with D3 successfully. I further want the value of frequency to lie on the top of each rectangle. I am able to get the complete structure and rec
The text element should not be inside the rect element. Just append them to your g element instead.