This project is read-only.

DataVisualization.Charting error

Apr 23, 2014 at 1:45 PM
Hello! I have a page where I want to put a chart using WinRT Xaml Toolkit Data Visualization Controls.

I have the following code:
<charting:Chart x:Name="PieChart" Title="Pie Chart" Margin="70,0">
    <charting:Chart.Series>
        <charting:PieSeries ItemsSource="{Binding Items}"
        IndependentValueBinding="{Binding Name}"
        DependentValueBinding="{Binding Value}"
        IsSelectionEnabled="True" />
    </charting:Chart.Series>
</charting:Chart>
VS keeps telling me: "A value of type 'PieSeries' cannot be added to a collection or dictionary of type 'Collection`1'".

Why is this an error? Thank you very much