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

Spline Series

The SplineSeries are represented on the chart as data points connected with smooth line segments.

The SplineSeries class inherits from the LineSeries class - See the inherited properties.


Examples 1, 2 and 3 show how to create a RadCartesianChart with a SplineSeries.

Example 1: Defining the model

    public class Data 
        public string Category { get; set; } 
        public double Value { get; set; } 

Example 2: Populating with data

public MainPage() 
    List<Data> data = new List<Data>(); 
    data.Add(new Data() { Category = "Apples", Value = 5 }); 
    data.Add(new Data() { Category = "Oranges", Value = 9 }); 
    data.Add(new Data() { Category = "Pineaples", Value = 8 }); 
    this.splineSeries.DataContext = data; 

Example 3: Defining the RadCartesianChart and SplineSeries

<Grid xmlns:telerikChart="using:Telerik.UI.Xaml.Controls.Chart"> 
    <telerikChart:RadCartesianChart x:Name="splineSeries" PaletteName="DefaultLight"> 
        <telerikChart:SplineSeries ItemsSource="{Binding}"> 
                <telerikChart:PropertyNameDataPointBinding PropertyName="Category"/> 
                <telerikChart:PropertyNameDataPointBinding PropertyName="Value"/> 

Figure 1: Result from Example 3

Categorical Spline Series

In this article
Not finding the help you need?