rotate x axis text in d3
If you set a transform of rotate(180), it rotates the element relative to the origin, not relative to the text anchor. So, if your text elements also have an x and y attribute set to position them, it’s quite likely that you’ve rotated the text off-screen. For example, if you tried, <text x=”200″ y=”100″ transform=”rotate(180)”>Hello!</text> … Read more