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

SparkBarSeries

Updated over 6 months ago

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

C#
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;
}

Figure 1: SparkBarSeries

WinForms RadSparkline SparkBarSeries

The essential properties of SparkBarSeries are:

PropertyDescription
BaselineValueGets or sets the value of the base line splitting the area into Win and Loss halves.
HighValueGets the high value data point.
LowValueGets the low value data point.