Cannot add a series to a SfChart (the SfChart.Series is null)

When I try to add a series to a chart in XAML(doesn't matter which series), it returns with an error that says:
Property "Syncfusion.UI.Xaml.Charts.SfChart.Series" is null.
I have added the code underneath:
<syncfusion:SfChart Grid.Row="1"  x:Name="Chart">
    <syncfusion:SfChart.PrimaryAxis>
        <syncfusion:NumericalAxis Header="Time (ms)" />
    </syncfusion:SfChart.PrimaryAxis>
    <syncfusion:SfChart.SecondaryAxis>
         <syncfusion:NumericalAxis Header="Intensity" />
    </syncfusion:SfChart.SecondaryAxis>
    <syncfusion:LineSeries ItemsSource="{Binding DataPoints}" XBindingPath="Time" YBindingPath="IntensityPercentage"></syncfusion:LineSeries>
</syncfusion:SfChart>

2 Replies

JA Jamiel April 25, 2021 10:07 AM UTC

This was somehow fixed by changing the syncfusion prefix to 'chart'


YP Yuvaraj Palanisamy Syncfusion Team April 26, 2021 07:55 AM UTC

Hi Jamiel, 
 
Thank you for your update. We are glad to know that the issue has been resolved.  
  
Please let us know if you have any other queries.  
 
Regards, 
Yuvaraj 


Loader.
Up arrow icon