Spread for ASP.NET 10 Product Documentation
Fill Property (BoxWhiskerSeries)
Example 


Gets or sets the fill for the surface.
Syntax
'Declaration
 
Public Property Fill As Fill
'Usage
 
Dim instance As BoxWhiskerSeries
Dim value As Fill
 
instance.Fill = value
 
value = instance.Fill
public Fill Fill {get; set;}
Remarks
Value of null (Nothing in VB) indicates that the fill is unset for the surface.
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)
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

BoxWhiskerSeries Class
BoxWhiskerSeries Members

 

 


Copyright © GrapeCity, inc. All rights reserved.