Group: Forum Members
Last Active: 8 Years Ago
Posts: 61,
Visits: 35
|
Hi,
I am trying to auto scale my graph during run time. I have two options ether the user can give min and max values of the Y axes or it should be done automatic. I have this code:
public void setAutoscale(int axisIndex, bool autoscale) { if (autoscale) { m_Chart.Axis(axisList[axisIndex].AxisId).View = new NContentAxisView(); } else { m_Chart.Axis(axisList[axisIndex].AxisId).View = new NRangeAxisView(new NRange1DD(1000, 3000)); } }
The only problem of mine is that I would like to set a minimum value of the automatic scale set like that:
m_Chart.Axis(axisList[axisIndex].AxisId).View = new NContentAxisView(0);
Is it possible to sort this out somehow (any built in method?)? I know I could write my own function to check the maximum value in every tick, but that seems a bit useless, of course if there are not any other option I will need to go with that.
Thank you for your help in advanced Daniel
|