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

SparkLineSeries

Updated over 6 months ago

SparkLineSeries plot their CategoricalSparkDataPoint on Cartesian Area. The following example shows how you can create the line series.

Create SparkLineSeries

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

Figure 1: SparkLineSeries

WinForms RadSparkline SparkLineSeries

The essential properties of SparkPointSeries are:

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.