New to Telerik UI for WinForms? Download free 30-day trial

SparkBarSeries

SparkBarSeries are used to visualize data points as bar blocks where the height of each bar denotes the magnitude of its value. The following snippet demonstrates how to manually add SparkBarSeries.

Create SparkBarSeries

public void CreateBarSeries()
{
    var barSeries = new SparkBarSeries();
    barSeries.DataPoints.Add(new CategoricalSparkDataPoint(13));
    barSeries.DataPoints.Add(new CategoricalSparkDataPoint(20));
    barSeries.DataPoints.Add(new CategoricalSparkDataPoint(15));
    barSeries.DataPoints.Add(new CategoricalSparkDataPoint(5));
    barSeries.DataPoints.Add(new CategoricalSparkDataPoint(29));
    barSeries.DataPoints.Add(new CategoricalSparkDataPoint(8));
    barSeries.DataPoints.Add(new CategoricalSparkDataPoint(22));
    barSeries.ShowHighPointIndicator = true;
    barSeries.ShowLowPointIndicator = true;
    this.radSparkline1.Series = barSeries;
}

Public Sub CreateBarSeries()
    Dim barSeries = New SparkBarSeries()
    barSeries.DataPoints.Add(New CategoricalSparkDataPoint(13))
    barSeries.DataPoints.Add(New CategoricalSparkDataPoint(20))
    barSeries.DataPoints.Add(New CategoricalSparkDataPoint(15))
    barSeries.DataPoints.Add(New CategoricalSparkDataPoint(5))
    barSeries.DataPoints.Add(New CategoricalSparkDataPoint(29))
    barSeries.DataPoints.Add(New CategoricalSparkDataPoint(8))
    barSeries.DataPoints.Add(New CategoricalSparkDataPoint(22))
    barSeries.ShowHighPointIndicator = True
    barSeries.ShowLowPointIndicator = True
    Me.radSparkline1.Series = barSeries
End Sub

Figure 1: SparkBarSeries

WinForms RadSparkline SparkBarSeries

The essential properties of SparkBarSeries are:

Property Description
BaselineValue Gets or sets the value of the base line splitting the area into Win and Loss halves.
HighValue Gets the high value data point.
LowValue Gets the low value data point.
In this article