cut off number at bottom

TeeChart for JavaScript for the HTML5 Canvas
Post Reply
sct
Newbie
Newbie
Posts: 31
Joined: Tue Aug 06, 2013 12:00 am

cut off number at bottom

Post by sct » Thu Aug 22, 2013 7:21 pm

I just saw this on a graph with 4 digit precision. Is there not a built in mechanism that watches for over lap?
Attachments
cutoff.png
cutoff.png (242.4 KiB) Viewed 7844 times

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

Re: cut off number at bottom

Post by Yeray » Mon Aug 26, 2013 1:34 pm

Hi,

The positions of the axis labels are calculated relative to the axis scale. See the drawLabels function to see how it is exactly calculated.
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

sct
Newbie
Newbie
Posts: 31
Joined: Tue Aug 06, 2013 12:00 am

Re: cut off number at bottom

Post by sct » Tue Aug 27, 2013 12:21 pm

I see 3 ways to solve this.

1) widen the grid ( could not find a way to do that at first glance )
2) strip off anything more the 4 characters ( api side).
3) prepare the data so that only 4 character per string go in .

3 shall suffice for now. Granted the 4 characters thing would depend on other variables so checking size of text would be better.

Post Reply