User (Legacy) Posted November 14, 2002 Report Share Posted November 14, 2002 Hi, Can someone help me with this problem. I'm setting the min and max values depending on data. Then I use AdjustScale method to round them up, but unfortunately it does right for the max value but resets min to 0. See code below ChartFX1.Axis(AXIS_Y).Max = maxY * 1.1 if minY * 0.9 > 0 then ChartFX1.Axis(AXIS_Y).Min = minY * 0.9 end if ChartFX1.Axis(AXIS_Y).AdjustScale() ChartFX1.Axis(AXIS_Y).Step = ChartFX1.Axis(AXIS_Y).Max/5 On the other hand If I don't use the AdjustScale() method then the numbers don't look nice. Is there anyway to solve this without having to round up the number myself instead of using AdjustScale() method. Your help will be appreciated. Regards Malcolm Rasool Link to comment Share on other sites More sharing options...
Software FX Posted November 15, 2002 Report Share Posted November 15, 2002 Please check if you are turning off the ForceZero property for the Y axis. -- Regards, JC Software FX Support "Malcolm Rasool" <MRasool@envinta.com> wrote in message news:nC5BbWEjCHA.1312@webserver1.softwarefx.com... > Hi, > > Can someone help me with this problem. > > I'm setting the min and max values depending on data. Then I use AdjustScale > method to round them up, but unfortunately it does right for the max value > but resets min to 0. See code below > > ChartFX1.Axis(AXIS_Y).Max = maxY * 1.1 > if minY * 0.9 > 0 then > ChartFX1.Axis(AXIS_Y).Min = minY * 0.9 > end if > ChartFX1.Axis(AXIS_Y).AdjustScale() > ChartFX1.Axis(AXIS_Y).Step = ChartFX1.Axis(AXIS_Y).Max/5 > > On the other hand If I don't use the AdjustScale() method then the numbers > don't look nice. Is there anyway to solve this without having to round up > the number myself instead of using AdjustScale() method. > > Your help will be appreciated. > > Regards > > Malcolm Rasool > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 19, 2002 Author Report Share Posted November 19, 2002 Bingo! it works. Thank you very much. "Software FX Support" <support@softwarefx.com> wrote in message news:I4larDPjCHA.1312@webserver1.softwarefx.com... > Please check if you are turning off the ForceZero property for the Y axis. > > -- > Regards, > > JC > Software FX Support > "Malcolm Rasool" <MRasool@envinta.com> wrote in message > news:nC5BbWEjCHA.1312@webserver1.softwarefx.com... > > Hi, > > > > Can someone help me with this problem. > > > > I'm setting the min and max values depending on data. Then I use > AdjustScale > > method to round them up, but unfortunately it does right for the max value > > but resets min to 0. See code below > > > > ChartFX1.Axis(AXIS_Y).Max = maxY * 1.1 > > if minY * 0.9 > 0 then > > ChartFX1.Axis(AXIS_Y).Min = minY * 0.9 > > end if > > ChartFX1.Axis(AXIS_Y).AdjustScale() > > ChartFX1.Axis(AXIS_Y).Step = ChartFX1.Axis(AXIS_Y).Max/5 > > > > On the other hand If I don't use the AdjustScale() method then the numbers > > don't look nice. Is there anyway to solve this without having to round up > > the number myself instead of using AdjustScale() method. > > > > Your help will be appreciated. > > > > Regards > > > > Malcolm Rasool > > > > > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.