05-21-2015 12:27 PM - edited 05-21-2015 12:28 PM
I got mine to work but just wanted to make sure I am doing it properly. I'm only asking because I had to use casting and hardcoded element retrieval.
This is what works for me:
AxisDouble Yaxis = (AxisDouble)Graph.Axes.ElementAt(0); Yaxis.Range = new Range<double>(-25000, 25000);
I also set Adjuster="None" in XAML.
Thank you.
Solved! Go to Solution.
05-21-2015 02:03 PM
Your approach is fine. Since you are declaring the axis in XAML, you could also use a name instead of referring to it by index location:
<ni:AxisDouble x:Name="Yaxis" Adjuster="None" ... />
05-21-2015 02:04 PM
Much better. Didn't think of that...
Thank you