Cannot add syncfusion:ColumnSeries to ChartSeriesCollection - Error Failed to add ColumnSeries to ChartSeriesCollection. Element not found"

I am trying to use SfChart and getting error for any series in xaml.  The error is: "Failed to add ColumnSeries to ChartSeriesCollection.  Element not found"  Any help?  Thanks Hashad

This is state from Syncfusion's documentation for SfChart.
<syncfusion:SfChart>
   
  <syncfusion:SfChart.PrimaryAxis>
    
      <syncfusion:CategoryAxis Header="Name" />             
   
  </syncfusion:SfChart.PrimaryAxis>

  <syncfusion:SfChart.SecondaryAxis>
  
      <syncfusion:NumericalAxis Header="Height(in cm)" >                        

  </syncfusion:SfChart.SecondaryAxis>
    
<!-- this is where I am getting error  "Failed to add ColumnSeries to ChartSeriesCollection.  Element not found"-->
   <syncfusion:ColumnSeries  ItemsSource="{Binding Data}" XBindingPath="Name" YBindingPath="Height" >
  </syncfusion:ColumnSeries>

 </syncfusion:SfChart>

1 Reply

DD Devakumar Dhanapoosanam Syncfusion Team May 18, 2020 07:13 AM UTC

Hi Harshad, 
 
Greetings from Syncfusion. 
 
We have analyzed the reported query and checked same by preparing the sample with provided code snippet. We would like to let you know that prepared sample is working fine at our end. Please find the tested sample in below 
 
 
Can you please share the following details which will be helpful for us to analyze the reported issue and provide you a better solution at earlier?   
·       Please ensure whether the above sample works at your end or not.   
·       Can you please share the complete chart related code snippet or if possible, can you please try to modify the above sample to reproduce the issue?  
·       Please also ensure that added NuGet are restored properly in your sample. 
 
Regards, 
Devakumar D 


Loader.
Up arrow icon