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

SparkWinLossSeries

Win Loss Chart provides a quick way of seeing overall situation of a series of data at glance. It shows positive and negative values in a distinctive way.

Create SparkBarSeries

public void CreateWinLossSeries()
{
    var winLossSeries = new SparkWinLossSeries();
    winLossSeries.DataPoints.Add(new CategoricalSparkDataPoint(13));
    winLossSeries.DataPoints.Add(new CategoricalSparkDataPoint(-20));
    winLossSeries.DataPoints.Add(new CategoricalSparkDataPoint(15));
    winLossSeries.DataPoints.Add(new CategoricalSparkDataPoint(5));
    winLossSeries.DataPoints.Add(new CategoricalSparkDataPoint(29));
    winLossSeries.DataPoints.Add(new CategoricalSparkDataPoint(-8));
    winLossSeries.DataPoints.Add(new CategoricalSparkDataPoint(-22));
    winLossSeries.ShowHighPointIndicator = true;
    winLossSeries.ShowLowPointIndicator = true;
    this.radSparkline1.Series = winLossSeries;
}

Public Sub CreateWinLossSeries()
    Dim winLossSeries = New SparkWinLossSeries()
    winLossSeries.DataPoints.Add(New CategoricalSparkDataPoint(13))
    winLossSeries.DataPoints.Add(New CategoricalSparkDataPoint(-20))
    winLossSeries.DataPoints.Add(New CategoricalSparkDataPoint(15))
    winLossSeries.DataPoints.Add(New CategoricalSparkDataPoint(5))
    winLossSeries.DataPoints.Add(New CategoricalSparkDataPoint(29))
    winLossSeries.DataPoints.Add(New CategoricalSparkDataPoint(-8))
    winLossSeries.DataPoints.Add(New CategoricalSparkDataPoint(-22))
    winLossSeries.ShowHighPointIndicator = True
    winLossSeries.ShowLowPointIndicator = True
    Me.radSparkline1.Series = winLossSeries
End Sub

Figure 1: SparkBarSeries

WinForms RadSparkline SparkBarSeries

In this article