This project is read-only.

Auto Range Y Axis and X Axis on a chart plotter

Sep 7, 2011 at 4:43 PM

Hi

I have a simple Line graph with 6 lines added.  I want to be able to offer Autoranging for each axis idependantly, i.e. I might want to have the Y Axis change scale according to the min and max data, but the x stay still at a set point.  Is there a way of doing this easily or do I have to loop round all of the data finding the max and min each time?

Thanks

Mark.

Oct 7, 2011 at 5:47 AM

Hi Mark,

use yAxis.SetConversion(....) and use viewPort.Visible to fix x axis limits.

Regards

Ravi

Oct 17, 2011 at 4:43 AM
Edited Oct 17, 2011 at 4:44 AM

Hi Ravi,

I tried your suggestion and C# tells me yAxis does not include the method SetConvertion(...)

Could you explain why to me ,please ?

thanks !

sumgmin.

 

Oct 17, 2011 at 7:18 AM

Hi,

you may be missing namespace I guess. Namespace is

using Microsoft.Research.DynamicDataDisplay.Charts;
My yAxis is "VerticalAxis" and this is derived from "NumericAxis". I used 0.34703.0.

Regards

Ravi

Oct 18, 2013 at 11:59 AM
Hi SetConversion does not exist in VerticalAxis class :( can you please tell me how did you solve this or did you have such a problem actually?