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. Image for the cookie policy date

Spline Area Chart not working

i had created spline area chart but its nit working.. 
<chart:SfChart x:Name="SplineChart" >
      <chart:SplineAreaSeries ItemsSource ="{Binding Data}"  />
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"

please correct my mistake
Thank you

1 Reply

PS Parthiban Sundaram Syncfusion Team 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  

Parthiban S

Live Chat Icon For mobile
Up arrow icon