This project is read-only.

Auto Range Y Axis and X Axis on a chart plotter

Sep 7, 2011 at 4:43 PM


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?



Oct 7, 2011 at 5:47 AM

Hi Mark,

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



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 !



Oct 17, 2011 at 7:18 AM


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.



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?