New to Telerik UI for WinFormsStart a free 30-day trial

SparkAreaSeries

Updated over 6 months ago

As a derivative of Categorical series, SparkAreaSeries plot their data points using CategoricalSparkDataPoints. 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 SparkAreaSeries:

Create SparkAreaSeries

C#
public void CreateAreaSeries()
{
    var areaSeries = new SparkAreaSeries();
    areaSeries.DataPoints.Add(new CategoricalSparkDataPoint(13));
    areaSeries.DataPoints.Add(new CategoricalSparkDataPoint(20));
    areaSeries.DataPoints.Add(new CategoricalSparkDataPoint(15));
    areaSeries.DataPoints.Add(new CategoricalSparkDataPoint(5));
    areaSeries.DataPoints.Add(new CategoricalSparkDataPoint(29));
    areaSeries.DataPoints.Add(new CategoricalSparkDataPoint(8));
    areaSeries.DataPoints.Add(new CategoricalSparkDataPoint(22));
    areaSeries.ShowHighPointIndicator = true;
    areaSeries.ShowLowPointIndicator = true;
    areaSeries.HighPointShape = new StarShape(5, 3);
    this.radSparkline1.Series = areaSeries;
}

Figure 1: SparkAreaSeries

WinForms RadSparkline SparkAreaSeries

The essential properties of SparkAreaSeries coincide with these of SparkLineSeries:

PropertyDescription
MarkerSizeGets or sets the size of the points of the series.
MarkerShapeGets or sets the shape of the points of the series.
HighPointSizeGets or sets the size of the high point of the series.
HighPointShapeGets or sets the shape of the low point of the series.
LowPointSizeGets or sets the size of the low point of the series.
LowPointShapeGets or sets the shape of the low point of the series.
FirstPointSizeGets or sets the size of the first point of the series.
FirstPointShapeGets or sets the shape of the first point of the series.
LastPointSizeGets or sets the size of the last of the series.
LastPointShapeGets or sets the shape of the last point of the series.
NegativePointSizeGets or sets the size of the negative points of the series.
NegativePointShapeGets or sets the shape of the negative points of the series.
BaselineValueGets or sets the value of the base line splitting the area into top and bottom half.
Not finding the help you need?
Contact Support