How to scale the axes of winrt toolcharts?

"I use the diagrams that come with the Winrt Xaml toolkit. Despite some (xaml) errors, most diagrams display well, but the axis binding does not work. As I try to determine min, max or interval. I get the following error message:

Failed to create "Windows.Foundation.IReference`1" from text "1"

<charting:Chart x:Name="GradePointAverage" Title="Line Chart" Width="650" Height="650">
    <charting:Chart.Axes>
        <charting:LinearAxis Orientation="X" Title="x axis" Interval="1" Minimum="1" Maximum="6"    />
        <charting:LinearAxis Orientation="Y" Title="y axis"  ShowGridLines="True" />
    </charting:Chart.Axes>
    <charting:LineSeries ItemsSource="{Binding Items}" IndependentValueBinding="{Binding HalfYear}"
                            DependentValueBinding="{Binding Average}" IsSelectionEnabled="True" AnimationSequence="FirstToLast" TransitionDuration="0:0:5"   />
</charting:Chart>

In addition, all diagrams are marked as “Type value [diagram type] cannot be added to a collection or a dictionary of type 'collection`1." I installed the toolkit via nuget and already tried to reinstall it.

+4
1

Minimum, Maximum xaml. , #. , - : ( : WinRT XAML Toolkit?)

((LineSeries)GradePointAverage.Series[0]).IndependentAxis = new LinearAxis
                                              {
                                                  Minimum = 1,
                                                  Maximum = 6,
                                                  Orientation = AxisOrientation.X,
                                                  Interval = 1
                                              };

((LineSeries)GradePointAverage.Series[0]).DependentRangeAxis = new LinearAxis
                                                  {
                                                      Orientation = AxisOrientation.Y,
                                                      ShowGridLines = true
                                                  };
+1

All Articles