Problem with labels rotation

TeeChart for Javascript for the HTML5 Canvas
Post Reply
Igor
Newbie
Newbie
Posts: 5
Joined: Tue Mar 25, 2014 12:00 am

Problem with labels rotation

Post by Igor » Mon Mar 31, 2014 10:19 am

Hi, I've got a problem when rotating bottom axis labels. If Chart1.axes.bottom.labels.rotation = 0, everything is fine, but when I set it to 90, labels seem to move out to the left. So the first label in this case is not under the first point (axis tick), but have an offset from it to the left. The more points I draw in serie, the greater offset I get. When I zoom it looks better, because offset seems to remain the same amount of pixels from axis tick. Any thoughts?

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

Re: Problem with labels rotation

Post by Yeray » Mon Mar 31, 2014 12:11 pm

Hello,

I guess the drawLabel could be improved in TeeChart Javascript to calculate the position of the rotated labels better than now.
I've added it to the wish list to be revised for further releases.
http://bugs.teechart.net/show_bug.cgi?id=688
Feel free to add your mail to the CC list to be automatically notified when an update arrives.
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

Igor
Newbie
Newbie
Posts: 5
Joined: Tue Mar 25, 2014 12:00 am

Re: Problem with labels rotation

Post by Igor » Mon Mar 31, 2014 12:17 pm

OK, thanks

Post Reply