Problem with DataVisualization.Charting and universal project

Jan 4, 2015 at 4:21 PM
Edited Jan 4, 2015 at 4:22 PM
Hi,

Im trying to add a chart to a windows 8.1 universal app but Im getting the following error.

"A value of type 'PieSeries' cannot be added to a collection or dictionary of type 'Collection`1'.
  <HubSection Width="700" x:Uid="Section1Header" Header="Section 1">
                <DataTemplate>
                    <Grid>
<Charting:Chart x:Name="PieChart" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="100,100,0,0" Width="400" Height="400">
                                <Charting:PieSeries Margin="0" ItemsSource="{Binding Path=HomeData.ListOfPieChartResult}" IndependentValuePath="{Binding Name}" DependentValuePath="{Binding Value}" IsSelectionEnabled="True"/>
                            </Charting:Chart>
     </Grid>
                </DataTemplate>
            </HubSection>

ListOfPieChartResult is an ObservableCollection<NameValue>

 public class NameValue : INotifyPropertyChanged
    {
        // Used to notify the page that a data context property changed
        public event PropertyChangedEventHandler PropertyChanged;
        protected void NotifyPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        private string name;
        public string Name
        {
            get { return this.name; }
            set
            {
                this.name = value;
                NotifyPropertyChanged("Name");
            }
        }

        private int value;
        public int Value
        {
            get { return this.value; }
            set
            {
                this.value = value;
                NotifyPropertyChanged("Value");
            }
        }
    }
I cannot find an example online using charts into a hubsection.

Any help highly appreciated.