FlexChart | ComponentOne
FlexChart / Understanding FlexChart / FlexChart Types / WPF Spline Chart
In This Topic
    WPF Spline Chart
    In This Topic

    The Spline Chart is similar to the line chart except that it connects data points by using splines rather than straight lines. The chart is used as an alternative to the line chart, but more specifically for representing data that requires the use of curve fittings.

    You need to set the ChartType property to Spline either from the Properties window, in the code behind, or in XAML to create the Spline Chart.

    You can set the Stacking property to Stacked or Stacked100pc to create the stacking WPF Spline Chart.

    WPF Spline Chart

    WPF Spline Chart

    Here is the code demonstrating the implementation:

    <c1:C1FlexChart x:Name="flexChart" 
                    ItemsSource="{Binding DataContext.Data}" 
            <c1:Series SeriesName="Sales" 
            <c1:Series SeriesName="Expenses" 
    Copy Code
    flexChart.ChartType = C1.Chart.ChartType.Spline;