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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Spline Area Chart not working

Thread ID:

Created:

Updated:

Platform:

Replies:

127685 Dec 2,2016 12:39 PM UTC Dec 5,2016 11:28 AM UTC Xamarin.Forms 1
loading
Tags: SfChart
Malambika Radhakrishnan
Asked On December 2, 2016 12:39 PM UTC

i had created spline area chart but its nit working.. 
my XAML  CODE
<chart:SfChart x:Name="SplineChart" >
      <chart:SplineAreaSeries ItemsSource ="{Binding Data}"  />
     </chart:SfChart>
my C# CODE
 public List<ChartDataPoint> Data { get; set; }
 Data = new List<ChartDataPoint>();
            Data.Add(new ChartDataPoint(1, 35));
            Data.Add(new ChartDataPoint(2, 10));
            Data.Add(new ChartDataPoint(3, 8));
            Data.Add(new ChartDataPoint(4, 5));
SplineAreaSeries splineAreaSeries = new SplineAreaSeries()
{
    ItemsSource = Data,
    XBindingPath = "Year",
    YBindingPath = "Value"
};
          
            SplineChart.Series.Add(splineAreaSeries);


please correct my mistake
Thank you

Parthiban Sundaram [Syncfusion]
Replied On December 5, 2016 11:28 AM UTC

Hi Malambika,

Thanks for using Syncfusion Products.

We would like to inform you do not need to set XBindingPath and YBindingPath when the model is ChartDataPoint.

We have also prepared a sample based on your requirement. Please download the sample from following location.

Sample: http://www.syncfusion.com/downloads/support/forum/127685/ze/SplineArea-257456342  

Regards,
Parthiban S
 


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

;