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.. 
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

1 Reply

PS Parthiban Sundaram Syncfusion Team December 5, 2016 11:26 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/127684/ze/SplineArea-1578434889  
Regards,
Parthiban S
 
  
  


Loader.
Live Chat Icon For mobile
Up arrow icon