How to convert ClusteredColumnChart.Series to ClusteredColumnChart.SeriesTemplate with DataTemplate.

Oct 11, 2013 at 1:55 PM
Hello,
current in your demo application Column chart you have used ClusteredColumnChart.Series but I have changed it to SeriesTemplate and use the class to bind the values but its not reflecting. Could you please guide me where i'm going wrong. I pasting my codes below.
<chart:ClusteredColumnChart.SeriesTemplate>
                  <DataTemplate>
                    <chart:ChartSeries
                        SeriesTitle="{Binding Path=SeriesDisplayName}"
                        DisplayMember="Category"
                        ValueMember="Number"
                        ItemsSource="{Binding Path=recItems}" />
                   </DataTemplate>
                </chart:ClusteredColumnChart.SeriesTemplate>
in ViewModel.
 for (int i = 0; i < myDS.Tables[0].Rows.Count; i++)
            {
                Interviews = new ObservableCollection<recruiterSubmissionsCount>();
                Interviews.Add(new recruiterSubmissionsCount() { Category = "Interviews", Number = Convert.ToInt32(myDS.Tables[0].Rows[i]["InterviewScheduled"]) });
                Interviews.Add(new recruiterSubmissionsCount() { Category = "Rejections", Number = Convert.ToInt32(myDS.Tables[0].Rows[i]["Rejected"]) });
                Interviews.Add(new recruiterSubmissionsCount() { Category = "Submissions", Number = Convert.ToInt32(myDS.Tables[0].Rows[i]["SubmittedToBDM"]) });
                Series.Add(new SeriesData() { SeriesDisplayName = myDS.Tables[0].Rows[i]["Recruiter"].ToString(), recItems = Interviews });
            }

public ObservableCollection<SeriesData> Series
        {
            get;
            set;
        }

        public ObservableCollection<recruiterSubmissionsCount> Interviews
        {
            get;
            set;
        }
Added another member in SeriesData class.
    public class SeriesData
    {
        public string SeriesDisplayName { get; set; }

        public string SeriesDescription { get; set; }

        public ObservableCollection<TestClass> Items { get; set; }
        public ObservableCollection<recruiterSubmissionsCount> recItems { get; set; }
    }

public class recruiterSubmissionsCount : INotifyPropertyChanged
    {
        public string Category { get; set; }
        private float _number = 0;
        public float Number
        {
            get
            {
                return _number;
            }
            set
            {
                _number = value;
                if (PropertyChanged != null)
                {
                    this.PropertyChanged(this, new PropertyChangedEventArgs("Number"));
                }
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }