Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Line Chart for a month for the dates not available in datasource
posted

Hi,

I'm struggling with a problem from a long time. I've the following data. I'm using version 9.1 of Infragistics charts. 

DataTable dt = new DataTable();
dt.Columns.Add("Month"typeof(System.DateTime));
dt.Columns.Add("Min"typeof(System.Int16));
dt.Columns.Add("Max"typeof(System.Int16));
 
dt.Rows.Add(new object[] { DateTime.Parse("01-01-2012"), 00 });
dt.Rows.Add(new object[] { DateTime.Parse("01-02-2012"), 3060 });
dt.Rows.Add(new object[] { DateTime.Parse("01-03-2012"), 00 });
dt.Rows.Add(new object[] { DateTime.Parse("01-04-2012"), 2372 });
dt.Rows.Add(new object[] { DateTime.Parse("01-15-2012"), 6712 });
dt.Rows.Add(new object[] { DateTime.Parse("01-16-2012"), 5792 });
dt.Rows.Add(new object[] { DateTime.Parse("01-14-2012"), 2372 });
dt.Rows.Add(new object[] { DateTime.Parse("01-18-2012"), 6712 });
dt.Rows.Add(new object[] { DateTime.Parse("01-20-2012"), 5792 });

I want to display a month chart programmatically using C#.
 How to display all the dates in x axis whether data table includes those dates or not. 
Please share example asap.
Thanks