Page 1 of 1

rotated label or annotation

Posted: Sun Nov 21, 2010 10:41 pm
by 9236183
Hello,
We have Java V1.830 and are drawing a Map chart which requires a custom y-axis label or two. In our VCL equivalent of this chart we use something similar to the following to draw the extra labels :-

graph_->Canvas->RotateLabel(graph_->Canvas->Font->Size, graph_->LeftAxis->CalcYPosValue(weekDays_.y) + graph_->Canvas->Font->Size, weekDays_.label, 90);

Is there any way with the Java version to write a rotated label ?

Regards,
Brett

Re: rotated label or annotation

Posted: Mon Nov 22, 2010 3:12 am
by 9236183
Hi,

I toiled away and worked out how to do this, seems I needed to find the IGraphics3D rotateLabel function and combine that with the chart PaintListener callback function.

Thanks,
Brett.

Re: rotated label or annotation

Posted: Mon Nov 22, 2010 2:29 pm
by yeray
Hi Brett,

I'm glad to see you've found how to achieve it. Thanks for sharing your solution.