Page 1 of 1

cut off number at bottom

Posted: Thu Aug 22, 2013 7:21 pm
by 17766684
I just saw this on a graph with 4 digit precision. Is there not a built in mechanism that watches for over lap?

Re: cut off number at bottom

Posted: Mon Aug 26, 2013 1:34 pm
by yeray
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.

Re: cut off number at bottom

Posted: Tue Aug 27, 2013 12:21 pm
by 17766684
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.