We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Series DataBinding not working

Thread ID:

Created:

Updated:

Platform:

Replies:

127254 Nov 6,2016 06:45 AM UTC Nov 7,2016 08:45 AM UTC Windows Phone 1
loading
Tags: Chart
Saimoom Safayet Akash
Asked On November 6, 2016 06:45 AM UTC

I want to dynamically generate Series in SfChart so what i did is to databinding Series property to my view model's ChartSeriesCollection property. Problem is when the chart is getting initializing it is showing an exception "Value cannot be null. Parameter name: source". 

SfChart Sample XAML: 

<Charts:SfChart Series="{Binding chartDt.serieses}">                    
</Charts:SfChart>


ViewModel: 

chartDt.serieses = new ChartSeriesCollection();
ColumnSeries columnSeries = new ColumnSeries();
columnSeries.ItemsSource = this.Demands;
columnSeries.XBindingPath = "Demand";
columnSeries.YBindingPath = "Year2010";
this.chartDt.serieses.Add(columnSeries);


Stack Trace: 

   at System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
   at Syncfusion.UI.Xaml.Charts.SfChart.InitializeDefaultAxes()
   at Syncfusion.UI.Xaml.Charts.SfChart.UpdateArea(Boolean forceUpdate)
   at Syncfusion.UI.Xaml.Charts.ChartBase.UpdateArea()


What's going wrong? It's noted that the xaml designer of windows phone is showing data bt the app is getting crashed. 


Devi Aruna Maharasi Murugan [Syncfusion]
Replied On November 7, 2016 08:45 AM UTC

Hi Saimoom, 
  
Thanks for contacting Syncfusion Support. 
  
We are unable to reproduce the reported problem at our end. We have prepared a demo sample based on your requirement and it can be downloaded from below link, 
  
Sample: SeriesPhone 
  
If you are still able to reproduce the reported problem, please revert us by modifying the provided sample. It would be helpful for us to serve you better. 
  
Regards, 
Devi 





CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;