I’m playing around this D3 Bar Chart Project example… CodePen. And I wonder why, when I change the transform, rotate(-90)
to a positive number, the text will be invisible. Same goes with the attr('x', -250)
. #help
svgContainer
.append("text")
.attr("transform", "rotate(-90)")
.attr("x", -250)
.attr("y", 60)
.text("Gross Domestic Product");
svgContainer
.append("text")
.attr("x", width / 2 + 45)
.attr("y", height + 50)
.text("More Information: http://www.bea.gov/national/pdf/nipaguid.pdf")
.attr("class", "info");