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

Unbound Mode

Updated over 6 months ago

When using the unbound mode you need to create the series and manually add data points. Then you need to set the Series property of the RadSparkline. This is demonstrated in the following example.

Create Series Manually

C#
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.DataPoints.Add(new CategoricalSparkDataPoint(22));
barSeries.DataPoints.Add(new CategoricalSparkDataPoint(12));
barSeries.ShowHighPointIndicator = true;
barSeries.ShowLowPointIndicator = true;
barSeries.ShowFirstPointIndicator = true;
barSeries.ShowLastPointIndicator = true;
barSeries.ShowNegativePointIndicators = true;
 
this.radSparkline1.ShowAxis = true;
this.radSparkline1.AxisDrawMode = AxisDrawMode.AboveSeries;
this.radSparkline1.Series = barSeries;

You can see the result in the following image.

WinForms RadSparkline Unbound Mode

Not finding the help you need?
Contact Support