How to set axis boundary in WinRT XAML Toolkit line chart?

Answer

Finally, I decided to answer this question.

((LineSeries)MyChart.Series[0]).IndependentAxis = new LinearAxis
                                                  {
                                                      Minimum = 1,
                                                      Maximum = 5,
                                                      Orientation = AxisOrientation.X,
                                                      Interval = 1,
                                                      Margin = new Thickness(10, 0, 10, 0)
                                                  };

((LineSeries)MyChart.Series[0]).Clip = null;
((LineSeries)MyChart.Series[0]).Margin = new Thickness(10, 0, 10, 0);

I am drawing a line chart using the WinRT XAML Toolkit . I set the X axis manually, but when I install, I start the start and end point. I tried to set margin and padding, but it does not work. Could you suggest me how can I do this?

((LineSeries)MyChart.Series[0]).IndependentAxis = new LinearAxis
                                                  {
                                                      Minimum = 1,
                                                      Maximum = 5,
                                                      Orientation = AxisOrientation.X,
                                                      Interval = 1,
                                                      //Margin = .... Not working
                                                      //Padding = .... Not working
                                                  };

enter image description hereenter image description here

0
source share
1 answer

, , , Clip. , LineSeries. , XAML # . / X, . TODO.

0

All Articles