View unanswered posts | View active topics It is currently Wed May 08, 2024 2:53 pm



Reply to topic  [ 4 posts ] 
Force Y axis to int values 
Author Message
Post Force Y axis to int values
Hi guys, first of all, tks for this great class!

I'm using the old class and starting the update of my scripts.

On the old version, i can force Y axis to show only int values, without decimals. Is it possible get the same on 2.0?

And is it possible to rotate the Y axis description? On old version, the text of right Y axis is written from botton to top, and on the new one, is from top to botton.

Example

http://www.dadosdabolsa.com/novo/imagen ... /VALE5.png

tks!


Sat Jan 08, 2011 3:50 pm
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Force Y axis to int values
Hi,

The scale is computed automatically to be the more "user-readable" possible. To do so, the engine is trying to compute the best visual factors. If you choose to round the label value you may face an issue like here : AXIS_FORMAT_METRIC to decimal place.

Can you please post a screenshot of the issue you're facing?

Kind regards,
JD.


Sat Jan 08, 2011 5:18 pm
Profile WWW
Post Re: Force Y axis to int values
Tks for quick feedback.

In fact, i don't get erros.

I just prefer to show only int numbers, cause it makes less grid lines. :)

http://www.dadosdabolsa.com/novo/graphs.jpg


Sat Jan 08, 2011 11:29 pm
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Force Y axis to int values
You can try first to play with the MinDivHeight parameter of the drawScale() function to reduce the number of Y divisions.

Try something like 50.

Kind regards,
JD.


Sun Jan 09, 2011 3:31 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron