I believe because you rotate the y-axis label by -90 you need to apply the attr to x so that it moves "left and right" but that would be rotated by 90 so it would move up and down. If that makes sense.