DataTable dt = new DataTable(); dt.Columns.Add("Status"); dt.Columns.Add("Total"); dt.Rows.Add("Success", 34); dt.Rows.Add("Missing", 2); dt.Rows.Add("Failed", 10); Chart1.DataSource = dt; Chart1.Series["Series1"].XValueMember = "Status"; Chart1.Series["Series1"].YValueMembers = "Total"; Chart1.DataBind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)