Chart Chart1= new Chart(); Chart1.DataSource = dt; Chart1.Width = 800; Chart1.Height = 490; Chart1.Series.Add(new Series()); Chart1.Series[0].ChartType = SeriesChartType.BoxPlot; List<object> List1 = dt.AsEnumerable().ToList<object>(); foreach (DataRow row in dt.Rows) Chart1.Series[0].Points.AddXY(row["STATUS"], new object[] { row["MIN"], row["MAX"], row["25THPERCENTILE"], row["75THPERCENTILE"], row["AVG"], row["50THPRECENTILE"] }); //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.Width = Convert.ToInt32(myContainer.Width * 0.7) ;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)