Change LineChart Axis dynamically

Feb 9, 2016 at 4:59 PM
Hey everybody,

is there a way to change the range of an axis by changing the value of a slider? I tried to set an axis like Chart.Axes.Add, cleared it and added a new one, but this was possible only in the loaded-funtion of the page. When I tried to do this by clicking a button after adding values the application crashed. Perhaps binding is possible, but I was not able to do so.

Additionally, I have the same problems concerning <charting:Series and <charting:LinearAxis like some other users (I read about this in some other unanswered posts) that the XAML seems to be buggy and I don't get suggestions, but there are no errors while compiling or running. Is there a fix?
Feb 10, 2016 at 8:39 PM
Ok, my problem with setting the properties of axes at runtime has solved. I forgot the casting of the IAxis element to Linearaxis.

The problem about the "buggy" xaml code is still there...