rotated label or annotation

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
bdw
Advanced
Posts: 130
Joined: Mon Mar 07, 2005 5:00 am
Location: New Zealand
Contact:

rotated label or annotation

Post by bdw » Sun Nov 21, 2010 10:41 pm

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

bdw
Advanced
Posts: 130
Joined: Mon Mar 07, 2005 5:00 am
Location: New Zealand
Contact:

Re: rotated label or annotation

Post by bdw » Mon Nov 22, 2010 3:12 am

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.

Yeray
Site Admin
Site Admin
Posts: 9552
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: rotated label or annotation

Post by Yeray » Mon Nov 22, 2010 2:29 pm

Hi Brett,

I'm glad to see you've found how to achieve it. Thanks for sharing your solution.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply