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
Nevermind
xmXAxis.MinimumValue=Double.NAN
xmXAxis.ClearValue(NumericAxisBase.MinimumValueProperty);
should also work, I believe.
-Graham
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.