Area

As a derivative of Categorical series, AreaSeries plot their data points using category-value couples. Once positioned on a plane the points are connected to form a line. Further, the area enclosed by this line and the categorical axis is filled. Below is a sample snippet that demonstrates how to set up two AreaSeries:

Initial Setup

``````AreaSeries areaSeries = new AreaSeries();
AreaSeries areaSeries2 = new AreaSeries();

``````
``````Dim series As New AreaSeries()
Dim series2 As New AreaSeries()

``````

Figure 1: Initial Setup

The essential properties of AreaSeries coincide with these of LineSeries:

• BorderWidth: The property determines the thickness of the lines;

• PointSize: The property denotes the size of the points;

• Spline: Boolean property, which indicates whether the series will draw straight lines or smooth curves;

• SplineTension: The property sets the tension of the spline. The property will have effect only if the Spline is set to true;

• CombineMode: A common property for all categorical series, which introduces a mechanism for combining data points that reside in different series, but have the same category. The combine mode can be None, Cluster, Stack and Stack100. In the case of AreaSeries, None and Cluster mean that the series will be plotted independently of each other, so that they are overlapping. Stack plots the points on top of each other and Stack100 presents the values of one series as a percentage of the other series. The combine mode is best described by a picture:

Figure 2: Combine Mode