Hi All,
I have attached screenshot of the datatable I'm using. I need to have months on Y-Axis, and the columns as different series in barchart. Now, I'm facing following problems:
1) When I'm using one column the bar is displayed but the barchart.series.count() shows count of series as 0. The following is the code:
barChart1.DataSource = dt;
barChart1.XDataFields = new ObservableCollection<string> { "iPhoneSE" }
barChart1.XAxisLabelsDataFields = new ObservableCollection<string> { "TheMonth" }
2) How to add multiple series in a bar chart. I'm using following code but the series count remains to be 0 even if I can see on barchart.
barChart1.DataSource = dt;
barChart1.XDataFields = new ObservableCollection<string> { "iPhoneSE" }
barChart1.XAxisLabelsDataFields = new ObservableCollection<string> { "TheMonth" }
barChart1.YDataFields = new ObservableCollection<string> { "iPhoneSE", "iPhone7", "iPhone6S", "iPhone6" };
3) If I use areaChart then the count of series changes with the same code. But I wanr to display in barchart.
Regards,
Abhi D