Skip to main content



      Home
Home » Archived » BIRT » Problem with setting the MIN and MAX of Y-Axis Scale through Script
Problem with setting the MIN and MAX of Y-Axis Scale through Script [message #211100] Fri, 12 January 2007 01:17 Go to next message
Eclipse UserFriend
Originally posted by: abhinandan_sahu.yahoo.co.in

Hi,
The beforeGeneration() method is working even with bar charts.
Now my problem is like I want to set the min and max of the axis with the
next step value after the max or min.
For example if MAX value in dataset for yaxis is 2122 and MIN
is -212 and suppose I set STEP as 500 then the max values of the scale
should be the next step after 2122 that is 2500 and the min value of the
scale should be -500.
I think I have to use some kinda algorithm to achieve this but
will be thankful if anyone can suggest some.

Thanks in advance
Abhinandan
Re: Problem with setting the MIN and MAX of Y-Axis Scale through Script [message #211183 is a reply to message #211100] Fri, 12 January 2007 07:34 Go to previous message
Eclipse UserFriend
I think you can just do some integer divisions for that.

(MAX/STEP + 1)*STEP = 2500
(MIN/STEP -1)*STEP = -500

Thanks,

David

> Hi,
> The beforeGeneration() method is working even with bar
> charts.
> Now my problem is like I want to set the min and max of the axis with
> the
> next step value after the max or min.
> For example if MAX value in dataset for yaxis is 2122 and
> MIN
> is -212 and suppose I set STEP as 500 then the max values of the scale
> should be the next step after 2122 that is 2500 and the min value of
> the
> scale should be -500.
> I think I have to use some kinda algorithm to achieve this
> but
> will be thankful if anyone can suggest some.
> Thanks in advance
> Abhinandan
Previous Topic:How can I get the BIRT Engine Class Loader?
Next Topic:How to build BIRT from CVS Source?
Goto Forum:
  


Current Time: Fri Jun 06 21:51:08 EDT 2025

Powered by FUDForum. Page generated in 0.02659 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top