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

SparkScatterSeries

Updated over 6 months ago

Unlike Categorical series, ScatterSeries plots its data upon two numerical axes. Scatter series identify the position of each ScatterDataPoint using two numerical values - XValue and YValue for the horizontal and vertical axes respectively, just like in the typical Cartesian coordinate system. Here is how to create two SparkScatterSeries and populate them manually:

Create SparkScatterSeries

C#
public void CreateScatterSeries()
{
    var scatterSeries = new SparkScatterSeries();
    scatterSeries.DataPoints.Add(new ScatterSparkDataPoint(13,1));
    scatterSeries.DataPoints.Add(new ScatterSparkDataPoint(20,2));
    scatterSeries.DataPoints.Add(new ScatterSparkDataPoint(15,3));
    scatterSeries.DataPoints.Add(new ScatterSparkDataPoint(5,4));
    scatterSeries.DataPoints.Add(new ScatterSparkDataPoint(29,5));
    scatterSeries.DataPoints.Add(new ScatterSparkDataPoint(8,6));
    scatterSeries.DataPoints.Add(new ScatterSparkDataPoint(22,71));
    scatterSeries.ShowHighPointIndicator = true;
    scatterSeries.ShowLowPointIndicator = true;
    this.radSparkline1.Series = scatterSeries;
}

Figure 1: SparkScatterSeries

WinForms RadSparkline SparkScatterSeries

The essential properties of SparkScatterSeries are:

PropertyDescription
HighValueGets the high value data point.
LowValueGets the low value data point.