Use style text-anchor to properly rotate ticks.