Spread for ASP.NET 11 Product Documentation
ClusteredBoxWhiskerSeries Constructor()
Example 


FarPoint.Web.Chart Assembly > FarPoint.Web.Chart Namespace > ClusteredBoxWhiskerSeries Class > ClusteredBoxWhiskerSeries Constructor : ClusteredBoxWhiskerSeries Constructor()
Creates a new series.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New ClusteredBoxWhiskerSeries()
public ClusteredBoxWhiskerSeries()
Example
This example creates a box whisker chart.
FarPoint.Web.Chart.BoxWhiskerSeries series1 = new FarPoint.Web.Chart.BoxWhiskerSeries();
series1.SeriesName = "Store1";
series1.Values.Add(12);
series1.Values.Add(13);
series1.Values.Add(20);
series1.Border = new FarPoint.Web.Chart.SolidLine(Color.Black);
series1.Fill = new FarPoint.Web.Chart.GradientFill(Color.Brown, Color.Orange);
FarPoint.Web.Chart.BoxWhiskerSeries series2 = new FarPoint.Web.Chart.BoxWhiskerSeries();
series2.SeriesName = "Store2";
series2.Values.Add(15);
series2.Values.Add(5);
series2.Values.Add(25);
series2.Border = new FarPoint.Web.Chart.SolidLine(Color.Black);
series2.Fill = new FarPoint.Web.Chart.GradientFill(Color.Lavender, Color.DeepSkyBlue);
FarPoint.Web.Chart.ClusteredBoxWhiskerSeries cseries = new FarPoint.Web.Chart.ClusteredBoxWhiskerSeries();
cseries.Series.Add(series1);
cseries.Series.Add(series2);
FarPoint.Web.Chart.YPlotArea plotArea = new FarPoint.Web.Chart.YPlotArea();
plotArea.Location = new System.Drawing.PointF(0.2f, 0.2f);
plotArea.Series.Add(cseries);
FarPoint.Web.Chart.ChartModel model = new FarPoint.Web.Chart.ChartModel();
model.PlotAreas.Add(plotArea);
FarPoint.Web.Spread.Chart.SpreadChart chart = new FarPoint.Web.Spread.Chart.SpreadChart();
chart.Model = model;
FpSpread1.Sheets[0].Charts.Add(chart);
Dim series1 As New FarPoint.Web.Chart.BoxWhiskerSeries()
series1.SeriesName = "Store1"
series1.Values.Add(12)
series1.Values.Add(13)
series1.Values.Add(20)
series1.Border = New FarPoint.Web.Chart.SolidLine(System.Drawing.Color.Black)
series1.Fill = New FarPoint.Web.Chart.GradientFill(System.Drawing.Color.Brown, System.Drawing.Color.Orange)
Dim series2 As New FarPoint.Web.Chart.BoxWhiskerSeries()
series2.SeriesName = "Store2"
series2.Values.Add(15)
series2.Values.Add(5)
series2.Values.Add(25)
series2.Border = New FarPoint.Web.Chart.SolidLine(System.Drawing.Color.Black)
series2.Fill = New FarPoint.Web.Chart.GradientFill(System.Drawing.Color.Lavender, System.Drawing.Color.DeepSkyBlue)
Dim cseries As New FarPoint.Web.Chart.ClusteredBoxWhiskerSeries()
cseries.Series.Add(series1)
cseries.Series.Add(series2)
Dim plotArea As New FarPoint.Web.Chart.YPlotArea()
plotArea.Location = New System.Drawing.PointF(0.2F, 0.2F)
plotArea.Series.Add(cseries)
Dim model As New FarPoint.Web.Chart.ChartModel()
model.PlotAreas.Add(plotArea)
Dim chart As New FarPoint.Web.Spread.Chart.SpreadChart()
chart.Model = model
FpSpread1.Sheets(0).Charts.Add(chart)
See Also

Reference

ClusteredBoxWhiskerSeries Class
ClusteredBoxWhiskerSeries Members
Overload List