mahas

mahas

  • NA
  • 3
  • 11.4k

range bar chart with data tables contain plan&finished dates

Nov 28 2012 4:59 AM
Hi
 I had two data tables named planned & finished which contain start date and end date.
Here i am facing problem with two series while i am grouping.
     
 foreach (DataRow row in dt1.Rows)
        {
            DateTime dt1;
            DateTime dt2;
            dt1 = DateTime.Parse(dt1.Rows[j][1].ToString());
            dt2 = DateTime.Parse(dt1.Rows[j][2].ToString());
            Chart1.Series["Series2"].Points.AddXY(dt1.Rows[j][0].ToString(), dt1, dt2);
            j++;
        }
        for (i = 0; i < dta.Rows.Count; i++)
        {
            DateTime dt3;
            DateTime dt4;
            dt3 = DateTime.Parse(dta.Rows[i][1].ToString());
            dt4 = DateTime.Parse(dta.Rows[i][2].ToString());    
                Chart1.Series["Tasks"].Points.AddXY(dta.Rows[i][0].ToString(), dt3, dt4);
        }
 Chart1.Series["Series2"]["DrawSideBySide"] = "true";