Hi Ven,
Thanks for contacting Syncfusion support.
In SfChart, we are maintaining the ChartSeries in a ChartSeriesCollection, if you want to add a ChartSeries to SfChart, just create a ChartSeries instance and add it in the collection.
For example: If you want to add a ColumnSeries , create a new instance for it and add it in the Series property in SfChart.
[C#]
ColumnSeries columnSeries = new ColumnSeries();
columnSeries.ItemsSource = view.SneakersDetail;
columnSeries.XBindingPath = "Brand";
columnSeries.YBindingPath = "Year2014";
sampleChart.Series.Add(columnSeries);
|
For legends, just create new instance of ChartLegend type and assign it to the Legend property in the SfChart.
We have prepared the sample based on your requirement. Please find the sample from the following location.
Sample: ColumnChart
Please refer to the following UG documentation for your reference.
http://help.syncfusion.com/wpf/sfchart/getting-started#create-a-simple-chart-from-code-behind
Thanks,
Santhiya A.