DataRow newrowPassCount = dtoutput.NewRow(); DataRow newrowReworkCount = dtoutput.NewRow(); int pprevcount = 0; int rprevcount = 0; string ppcount; foreach (string columnName in columnNames) { Chart1.Series["Series1"].XValueMember = columnName; int pcount = lstData.Where(k => k.FileName == columnName).Count(k => k.status.Trim() == "PASS"); ppcount = "Pass: " + (Convert.ToString(pcount - pprevcount)); newrowPassCount[columnName] = ppcount; Chart1.Series["Series1"].YValueMembers = Convert.ToString(ppcount); pprevcount = pcount; rprevcount = rcount; } dtoutput.Rows.Add(newrowPassCount); dtoutput.Rows.Add(newrowReworkCount); Chart1.DataSource = dtoutput; Chart1.DataBind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)