Click here to Skip to main content
15,169,085 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi Members, does anyone know how can I set the box plot chart average point as a diamond shape instead of a normal line shape?

This is the output I want to achieve:[^]

I researched online for a quite awhile and found some properties like point marker and marker style but still couldn't get the output I want...

This is my codes:
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["CUSTOMER"], new object[] { row["MIN"], row["MAX"], row["25TH_PERCENTILE"], row["75TH_PERCENTILE"], row["AVG"], row["50TH_PERCENTILE"] });

//create chartareas
ChartArea ca= new ChartArea();
ca.AxisX = new Axis();
ca.AxisY = new Axis();

Chart1.Visible = true;

Updated 11-Oct-15 17:11pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900