I know I can set these values like so but is there a way to set them back to their defaults?
xmXAxis.MinimumValue = 0 xmXAxis.MaximumValue = 100 xmYAxis.MinimumValue = 0 xmYAxis.MaximumValue = 100
btw, what the value should be when axis is CategoryDateTimeXAxis? I tried DateTime.MinValue but it's not correct.
Thanks Graham,
That works better than Double.Nan which never set the X,Y min max values exactly as they were, usually one both axes min max values would be set so that your chart series were a bit bigger than before.
xmXAxis.ClearValue(NumericAxisBase.MinimumValueProperty);
should also work, I believe.
-Graham
Nevermind
xmXAxis.MinimumValue=Double.NAN