|
Re: Scale on Y-axis [message #368123 is a reply to message #368106] |
Tue, 05 May 2009 14:24 |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Jan,
Any chance you could post your code?
You can set the scale and step on axis doing
yAxis.getScale( ).setMin( NumberDataElementImpl.create( 20.5 ) );
yAxis.getScale( ).setMax( NumberDataElementImpl.create( 30.0 ) );
yAxis.getScale( ).setStep( 0.5 );
But the default is to auto scale. If you have the second axis turned
off what does the image look like?
Also do you have this line of code in?
xAxisPrimary.getOrigin( ).setType( IntersectionType.MIN_LITERAL );
Jason
Jan Pannecoeck wrote:
> Hi all,
>
> I'm using the BIRT Chart Engine in my RCP Application. I've asked some
> previous questions here and most of the time you could help me very
> well! Thank you!!
>
> Now I have an other problem. I have an chart with two Y-axis one on the
> right and an other one on the left. The one on the leftis the
> PrimaryOrthogonalAxis retrieved from the X-axis. The one on the right is
> an Axis created using the AxisImpl.create method and added to the x-axis
> using the getAssociatedAxis().add() method.
> Both axis are connected with a LineSerie and everything is drawn without
> any problems.
>
> But my scale on the left axis (the PrimaryOrthogonalAxis) is between 0
> and 17 where all my values connected with this axis are between 13 and 17.
>
> The scale on the right axis is between the corresponding values (my
> example 9-32).
>
> What I would like is that the left axis (the PrimaryOrthogonalAxis) also
> autoscale his min and max value using the LineSerie connected with it,
> that the scale is between 13 and 17.
>
> I've attached a screenshot of my chart where you can see the problem...
> I hope this problem can be solved since now my Axis isn't scaled right
> so the view the users get isn't really helpful for them...
>
> Thanks in advance,
> Jan Pannecoeck
>
> ------------------------------------------------------------ ------------
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03612 seconds