Jump to content
Software FX Community

MIN value is getting overwritten


User (Legacy)

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...