I am creating a graph for which I need an axis title for the y axis.
The problem is I need it at -90 degress to the horizontal.
Here is how I rotate the text at the moment.
paint.setTypeface(Typeface.SANS_SERIF);
canvas.save();
canvas.rotate(-90,15,viewHeight/2+20);
canvas.drawText(yAxisTitle,15,viewHeight/2+20, paint);
canvas.restore();
The problem is once its rotated its not straight on the vertical. Its as if its going too far?
Any help would be great.
Cheers
In this case it appeared to just be occurring on the emulator. Testing on 4 devices all displayed the text at the correct angle?!