Chart Chart1 = new Chart(); Chart1.DataSource = tg; Chart1.Width = 600; Chart1.Height = 350; Chart1.Series.Add(new Series()); Chart1.Series[0].ChartType = SeriesChartType.BoxPlot; List<object> lst = tg.AsEnumerable().ToList<object>(); foreach (DataRow row in tg.Rows) Chart1.Series[0].Points.AddXY(row["VALUE"], new object[] { row["Min"], row["Max"], row["Avg"], row["Percentile25"], row["Percentile50"], row["Percentile75"] }); Chart1.Series[0]["PixelPointWidth"] = "38"; string title = (tg.Rows[0]["TITLE"].ToString()); Chart1.Titles.Add(title); //create chartareas ChartArea ca = new ChartArea(); ca.AxisX = new Axis(); ca.AxisX.MajorGrid.Enabled = false; ca.AxisY = new Axis(); ca.AxisY.MajorGrid.Enabled = false; Chart1.ChartAreas.Add(ca); //databind Chart1.DataBind(); Chart1.Visible = true; panel.Controls.Add(Chart1);
#Chart1{font-weight:bold;}
Chart1.Titles.Add(title); Chart1.Titles(0).Font = ...
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)