Jump to content
Software FX Community

AxisY AutoScale


User (Legacy)

Recommended Posts

Posted

Hi,

Can you please tell me how to work with the AxisY AutoScale? I'm using a

realtime chart and i set the AutoScale property to true but the Y axis does

not seem to auto set the max value each time a new point reaches the current

scale - this cause the new point to be out of the scale.

In order to work around that i set the Max property value by myself each

time i'm adding a new point.

Can you please tell me what can be the problem ?

Thanks

Posted

chart.AxisY.AutoScale is set to true by default, it gets set to false when 

you assign Min or Max.

When AutoScale is set to true it will adjust the Min and Max to fit a value

everytime a value is assigned.

If this is not the behavior you are getting please attach code snippet or

sample program that demonstrates the issue.

--

Francisco Padron

www.chartfx.com

Posted

I didnĀ“t assign Min or Max values to the AxisY - not from the deginer and 

not from the code.

But still the y axis does not auto scale according to the data provided to

it.

Attached is the program sample.

Thanks.

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:aj5Zfi8DGHA.280@webserver3.softwarefx.com...

> chart.AxisY.AutoScale is set to true by default, it gets set to false when

> you assign Min or Max.

>

> When AutoScale is set to true it will adjust the Min and Max to fit a

> value

> everytime a value is assigned.

>

> If this is not the behavior you are getting please attach code snippet or

> sample program that demonstrates the issue.

>

> --

> Francisco Padron

> www.chartfx.com

>

>

WindowsApplication1.zip

Posted

The key here is that you are using Real Time charts.

The scale is NOT updated if the value is set between BeginAddData and

EndAddData, if the scale is adjusted optimized redrawing of the chart can

not be used, the whole chart will need to redraw.

If you want to update the Min and Max in a Real-Time chart as data comes in

you will need to adjust it using the API, notice that every time you update

the Min and Max the whole chart will repaint not just the new points.

--

Francisco Padron

www.chartfx.com

Archived

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

×
×
  • Create New...