Hello Everyone,
I am working with WPF Chart toolkit.
I have to x values as DayofWeek . I have bind the values DataTable Columns.
It is working fine, but it is not displaying in order. Please find the Image.
I tried column soritng, but it is not working.
My DataTable structure is
public DataTable getTable() { DataTable dt = new DataTable(); dt.Columns.Add("OpId", typeof(Int32)); dt.Columns.Add("WeekDay", typeof(string));// Also tried with type as DayofWeek dt.Columns.Add("Length", typeof(double)); dt.Columns.Add("AnotherLength", typeo(double)); return dt; }
in XAML
<charting:ScatterSeries Title="AbsentList" x:Name="myChart" ItemsSource="{Binding}" IndependentValuePath ="WeekDay" IsSelectionEnabled="True" DependentValuePath="OpId" Margin="0,0,0,1" />
Could any one know how to achieve this?
Thanks in advance.