menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SplineSeries - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SplineSeries

    SplineSeries is similar to that of LineSeries except that the points here are connected using smooth Bezier curves.

    Inheritance
    System.Object
    ChartSeriesBase
    ChartSeries
    AdornmentSeries
    CartesianSeries
    XyDataSeries
    XySegmentDraggingBase
    XySeriesDraggingBase
    SplineSeries
    Implements
    ICloneable
    ISupportAxes2D
    ISupportAxes
    ISegmentSelectable
    Inherited Members
    AdornmentSeries.AddAdornmentAtXY(Double, Double, Int32)
    AdornmentSeries.AddAreaAdornments(IList<Double>[])
    AdornmentSeries.AddColumnAdornments(Double[])
    AdornmentSeries.AdornmentLabelCreated
    AdornmentSeries.AdornmentsInfo
    AdornmentSeries.AdornmentsInfoProperty
    AdornmentSeries.ClearUnUsedAdornments(Int32)
    AdornmentSeries.CreateAdornment(AdornmentSeries, Double, Double, Double, Double)
    CartesianSeries.GetDataPoints(Double, Double, Double, Double)
    CartesianSeries.GetDataPoints(Rect)
    CartesianSeries.IsTransposed
    CartesianSeries.IsTransposedProperty
    CartesianSeries.ISupportAxes.ActualXAxis
    CartesianSeries.ISupportAxes.ActualYAxis
    CartesianSeries.OnApplyTemplate()
    CartesianSeries.OnVisibleRangeChanged(VisibleRangeChangedEventArgs)
    CartesianSeries.OnXAxisChanged(ChartAxis, ChartAxis)
    CartesianSeries.OnYAxisChanged(ChartAxis, ChartAxis)
    CartesianSeries.ShowTrackballInfo
    CartesianSeries.ShowTrackballInfoProperty
    CartesianSeries.Trendlines
    CartesianSeries.TrendlinesProperty
    CartesianSeries.XAxis
    CartesianSeries.XAxisProperty
    CartesianSeries.XRange
    CartesianSeries.YAxis
    CartesianSeries.YAxisProperty
    CartesianSeries.YRange
    ChartSeries.Area
    ChartSeries.GetDataPointIndex(Double, Double)
    ChartSeries.Stroke
    ChartSeries.StrokeProperty
    ChartSeries.StrokeThickness
    ChartSeries.StrokeThicknessProperty
    ChartSeriesBase.ActualXAxis
    ChartSeriesBase.ActualXValues
    ChartSeriesBase.ActualYAxis
    ChartSeriesBase.Adornments
    ChartSeriesBase.AnimationDuration
    ChartSeriesBase.AnimationDurationProperty
    ChartSeriesBase.ChartTransformer
    ChartSeriesBase.ClearUnUsedSegments(Int32)
    ChartSeriesBase.Clone()
    ChartSeriesBase.ColorModel
    ChartSeriesBase.ColorModelProperty
    ChartSeriesBase.ColorValues
    ChartSeriesBase.CreateEmptyPointSegments(IList<Double>, List<List<Double>>, List<List<Double>>)
    ChartSeriesBase.CreateTransformer(Size, Boolean)
    ChartSeriesBase.DataCount
    ChartSeriesBase.EmptyPointInterior
    ChartSeriesBase.EmptyPointInteriorProperty
    ChartSeriesBase.EmptyPointStyle
    ChartSeriesBase.EmptyPointStyleProperty
    ChartSeriesBase.EmptyPointSymbolTemplate
    ChartSeriesBase.EmptyPointSymbolTemplateProperty
    ChartSeriesBase.EmptyPointValue
    ChartSeriesBase.EmptyPointValueProperty
    ChartSeriesBase.EnableAnimation
    ChartSeriesBase.EnableAnimationProperty
    ChartSeriesBase.FindNearestChartPoint(Point, Double, Double, Double)
    ChartSeriesBase.GeneratePoints(String[], IList<Double>[])
    ChartSeriesBase.GetAvailableSize()
    ChartSeriesBase.GetPreviousSeries(ChartSeriesBase)
    ChartSeriesBase.GetSideBySideInfo(ChartSeriesBase)
    ChartSeriesBase.GetSpacing(DependencyObject)
    ChartSeriesBase.GetXValues()
    ChartSeriesBase.InitialDelayTimer
    ChartSeriesBase.Interior
    ChartSeriesBase.InteriorProperty
    ChartSeriesBase.Invalidate()
    ChartSeriesBase.IsAreaTypeSeries
    ChartSeriesBase.IsBitmapSeries
    ChartSeriesBase.IsColorPathSeries
    ChartSeriesBase.IsIndexed
    ChartSeriesBase.IsSeriesVisible
    ChartSeriesBase.IsSeriesVisibleProperty
    ChartSeriesBase.IsSideBySide
    ChartSeriesBase.IsSortData
    ChartSeriesBase.IsSortDataProperty
    ChartSeriesBase.IsStacked
    ChartSeriesBase.IsTooltipAvailable(Canvas)
    ChartSeriesBase.ItemsSource
    ChartSeriesBase.ItemsSourceProperty
    ChartSeriesBase.Label
    ChartSeriesBase.LabelProperty
    ChartSeriesBase.LegendIcon
    ChartSeriesBase.LegendIconProperty
    ChartSeriesBase.LegendIconTemplate
    ChartSeriesBase.LegendIconTemplateProperty
    ChartSeriesBase.ListenPropertyChange
    ChartSeriesBase.ListenPropertyChangeProperty
    ChartSeriesBase.OnDataSourceChanged(DependencyPropertyChangedEventArgs)
    ChartSeriesBase.OnSeriesMouseDown(Object, Point)
    ChartSeriesBase.OnSeriesMouseUp(Object, Point)
    ChartSeriesBase.Palette
    ChartSeriesBase.PaletteProperty
    ChartSeriesBase.Position(Point, ChartTooltip)
    ChartSeriesBase.PropertyChanged
    ChartSeriesBase.ResumeNotification()
    ChartSeriesBase.SegmentColorPath
    ChartSeriesBase.SegmentColorPathProperty
    ChartSeriesBase.Segments
    ChartSeriesBase.SelectedSegment
    ChartSeriesBase.SelectedSegmentsIndexes
    ChartSeriesBase.SeriesSelectionBrush
    ChartSeriesBase.SeriesSelectionBrushProperty
    ChartSeriesBase.SetDoubleAnimation(ChartTooltip)
    ChartSeriesBase.SetIndividualDataTablePoint(Int32, Object, Boolean)
    ChartSeriesBase.SetIndividualPoint(Int32, Object, Boolean)
    ChartSeriesBase.SetSpacing(DependencyObject, Double)
    ChartSeriesBase.SetTooltipDuration()
    ChartSeriesBase.ShowEmptyPoints
    ChartSeriesBase.ShowEmptyPointsProperty
    ChartSeriesBase.ShowTooltip
    ChartSeriesBase.ShowTooltipProperty
    ChartSeriesBase.SortBy
    ChartSeriesBase.SortByProperty
    ChartSeriesBase.SortDirection
    ChartSeriesBase.SortDirectionProperty
    ChartSeriesBase.SpacingProperty
    ChartSeriesBase.SuspendNotification()
    ChartSeriesBase.Timer
    ChartSeriesBase.TooltipTemplate
    ChartSeriesBase.TooltipTemplateProperty
    ChartSeriesBase.TrackBallLabelTemplate
    ChartSeriesBase.TrackBallLabelTemplateProperty
    ChartSeriesBase.UpdateArea()
    ChartSeriesBase.UpdateSegments(Int32, NotifyCollectionChangedAction)
    ChartSeriesBase.VisibilityOnLegend
    ChartSeriesBase.VisibilityOnLegendProperty
    ChartSeriesBase.XBindingPath
    ChartSeriesBase.XBindingPathProperty
    ChartSeriesBase.YPaths
    XyDataSeries.GeneratePoints()
    XyDataSeries.OnBindingPathChanged(DependencyPropertyChangedEventArgs)
    XyDataSeries.OnDataSourceChanged(IEnumerable, IEnumerable)
    XyDataSeries.YBindingPath
    XyDataSeries.YBindingPathProperty
    XyDataSeries.YValues
    XySegmentDraggingBase.DragCancelKeyModifiers
    XySegmentDraggingBase.DragCancelKeyModifiersProperty
    XySegmentDraggingBase.DragDelta
    XySegmentDraggingBase.DragEnd
    XySegmentDraggingBase.draggedValue
    XySegmentDraggingBase.DraggedValue
    XySegmentDraggingBase.DraggedXValue
    XySegmentDraggingBase.DragInfo
    XySegmentDraggingBase.DragSpliter
    XySegmentDraggingBase.DragStart
    XySegmentDraggingBase.DragTooltipStyle
    XySegmentDraggingBase.DragTooltipStyleProperty
    XySegmentDraggingBase.DragTooltipTemplate
    XySegmentDraggingBase.DragTooltipTemplateProperty
    XySegmentDraggingBase.EllipseAnimation
    XySegmentDraggingBase.EnableDragTooltip
    XySegmentDraggingBase.EnableDragTooltipProperty
    XySegmentDraggingBase.EnableSegmentDragging
    XySegmentDraggingBase.EnableSegmentDraggingProperty
    XySegmentDraggingBase.PreviewDragEnd
    XySegmentDraggingBase.RaiseDragDelta(DragDelta)
    XySegmentDraggingBase.RaiseDragEnd(ChartDragEndEventArgs)
    XySegmentDraggingBase.RaiseDragEnter(XySegmentEnterEventArgs)
    XySegmentDraggingBase.RaiseDragStart(ChartDragStartEventArgs)
    XySegmentDraggingBase.RaisePreviewEnd(XyPreviewEndEventArgs)
    XySegmentDraggingBase.ResetDragSpliter()
    XySegmentDraggingBase.RoundToDecimal
    XySegmentDraggingBase.RoundToDecimalProperty
    XySegmentDraggingBase.SegmentEnter
    XySegmentDraggingBase.SegmentIndex
    XySegmentDraggingBase.SnapToPoint
    XySegmentDraggingBase.SnapToPointProperty
    XySegmentDraggingBase.Tooltip
    XySegmentDraggingBase.UpdateSource
    XySegmentDraggingBase.UpdateSourceProperty
    XySegmentDraggingBase.UpdateUnderLayingModel(String, Int32, Object)
    XySeriesDraggingBase.EnableSeriesDragging
    XySeriesDraggingBase.EnableSeriesDraggingProperty
    XySeriesDraggingBase.OnChartDragDelta(Point, Object)
    XySeriesDraggingBase.OnChartDragEntered(Point, Object)
    XySeriesDraggingBase.OnChartDragExited(Point, Object)
    XySeriesDraggingBase.OnPointerEntered(PointerRoutedEventArgs)
    XySeriesDraggingBase.OnPointerExited(PointerRoutedEventArgs)
    XySeriesDraggingBase.OnPointerMoved(PointerRoutedEventArgs)
    XySeriesDraggingBase.OnPointerPressed(PointerRoutedEventArgs)
    XySeriesDraggingBase.OnPointerReleased(PointerRoutedEventArgs)
    XySeriesDraggingBase.UpdateUnderLayingModel(String, IList<Double>)
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.SfChart.UWP.dll
    Syntax
    public class SplineSeries : XySeriesDraggingBase, ICloneable, ISupportAxes2D, ISupportAxes, ISegmentSelectable
    Examples
          <syncfusion:SplineSeries ItemsSource="{Binding Data}" XBindingPath="Year" YBindingPath="Value">
          </syncfusion:SplineSeries>
          SplineSeries series1 = new SplineSeries();
          series1.ItemsSource = viewmodel.Data;
          series1.XBindingPath = "Year";
          series1.YBindingPath = "Value";
          chart.Series.Add(series1);

    Constructors

    SplineSeries()

    Declaration
    public SplineSeries()

    Fields

    CustomTemplateProperty

    The DependencyProperty for CustomTemplate property.

    Declaration
    public static readonly DependencyProperty CustomTemplateProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    SegmentSelectionBrushProperty

    The DependencyProperty for SegmentSelectionBrush property.

    Declaration
    public static readonly DependencyProperty SegmentSelectionBrushProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    SelectedIndexProperty

    The DependencyProperty for SelectedIndex property.

    Declaration
    public static readonly DependencyProperty SelectedIndexProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    SplineTypeProperty

    Using a DependencyProperty as the backing store for SplineType. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SplineTypeProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    StrokeDashArrayProperty

    The Dependency property forStrokeDashArray

    Declaration
    public static readonly DependencyProperty StrokeDashArrayProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    Properties

    CustomTemplate

    Gets or sets the custom template for this series.

    Declaration
    public DataTemplate CustomTemplate { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.DataTemplate

    Windows.UI.Xaml.DataTemplate

    Examples

    This example, we are using ScatterSeries.

        <syncfusion:ScatterSeries ItemsSource="{Binding Demands}" XBindingPath="Demand" 
                        ScatterHeight="40" YBindingPath="Year2010" ScatterWidth="40">
           <syncfusion:ScatterSeries.CustomTemplate>
                <DataTemplate>
                    <Canvas>
                       <Path Data="M20.125,32l0.5,12.375L10.3125,12.375L10.3125,0.5L29.9375,0.5L29.9375,12.375L39.75,12.375Z" Stretch="Fill"
                                Fill="{Binding Interior}" Height="{Binding ScatterHeight}" Width="{Binding ScatterWidth}" 
                                Canvas.Left="{Binding RectX}" Canvas.Top="{Binding RectY}"/>
                    </Canvas>
                </DataTemplate>
            </syncfusion:ScatterSeries.CustomTemplate>
        </syncfusion:ScatterSeries>

    IsLinear

    The property confirms the linearity of this series.

    Declaration
    protected override bool IsLinear { get; }
    Property Value
    Type
    System.Boolean
    Overrides
    ChartSeriesBase.IsLinear
    Remarks

    Returns true if its linear, otherwise it returns false.

    SegmentSelectionBrush

    Gets or sets the interior(brush) for the selected segment(s).

    Declaration
    public Brush SegmentSelectionBrush { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Media.Brush

    The Windows.UI.Xaml.Media.Brush value.

    SelectedIndex

    Gets or sets the index of the selected segment.

    Declaration
    public int SelectedIndex { get; set; }
    Property Value
    Type Description
    System.Int32

    Int value represents the index of the data point(or segment) to be selected.

    SelectedSegments

    Gets the selected segments in this series, when we enable the multiple selection.

    Declaration
    protected override List<ChartSegment> SelectedSegments { get; }
    Property Value
    Type Description
    System.Collections.Generic.List<ChartSegment>

    It returns the list of ChartSegment.

    Overrides
    ChartSeriesBase.SelectedSegments

    SplineType

    Gets or sets SplineType enum value which indicates the spline series type.

    Declaration
    public SplineType SplineType { get; set; }
    Property Value
    Type Description
    SplineType

    SplineType

    StrokeDashArray

    Gets or sets the stroke dash array for the spline series.

    Declaration
    public DoubleCollection StrokeDashArray { get; set; }
    Property Value
    Type
    Windows.UI.Xaml.Media.DoubleCollection

    Methods

    CloneSeries(DependencyObject)

    Returns the instance of SplineSeries series.

    Declaration
    protected override DependencyObject CloneSeries(DependencyObject obj)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DependencyObject obj

    object

    Returns
    Type
    Windows.UI.Xaml.DependencyObject
    Overrides
    XyDataSeries.CloneSeries(DependencyObject)

    CreateSegment()

    Creates an instance of series segment.

    Declaration
    protected override ChartSegment CreateSegment()
    Returns
    Type Description
    ChartSegment

    Returns the instance of corresponding series segment.

    Overrides
    ChartSeries.CreateSegment()
    Remarks

    This customization is not supported for fast type series and technical indicators.

    Examples

    This sample shows how to call the CreateSegment() method to customize the line series segments.

    public class LineSeriesExt : LineSeries
    {​ 
        protected override ChartSegment CreateSegment()
        {​
            return new LineSegmentExt();
        }​
    }​
    
    public class LineSegmentExt : LineSegment
    {​
        public override UIElement CreateVisual(Size size)
        {​
            // Write your customization code here.
        }​
    
        public override void Update(IChartTransformer transformer)
        {​
            // Write your customization code here.
        }​
    }

    CreateSegments()

    Creates the segments of SplineSeries.

    Declaration
    public override void CreateSegments()
    Overrides
    AdornmentSeries.CreateSegments()

    GetBezierControlPoints(ChartPoint, ChartPoint, Double, Double, out ChartPoint, out ChartPoint)

    Method used to calculate the bezier values.

    Declaration
    protected void GetBezierControlPoints(ChartPoint point1, ChartPoint point2, double ys1, double ys2, out ChartPoint controlPoint1, out ChartPoint controlPoint2)
    Parameters
    Type Name Description
    ChartPoint point1

    chart point

    ChartPoint point2

    chart point

    System.Double ys1

    ys1

    System.Double ys2

    ys2

    ChartPoint controlPoint1

    chart point

    ChartPoint controlPoint2

    chart point

    GetCardinalSpline(List<Double>, IList<Double>)

    Method used to calculate cardinal spline values.

    Declaration
    protected void GetCardinalSpline(List<double> xValues, IList<double> yValues)
    Parameters
    Type Name Description
    System.Collections.Generic.List<System.Double> xValues

    xvalues

    System.Collections.Generic.IList<System.Double> yValues

    yvalues

    GetMonotonicSpline(List<Double>, IList<Double>)

    Method used to calculate monotonic spline values.

    Declaration
    protected void GetMonotonicSpline(List<double> xValues, IList<double> yValues)
    Parameters
    Type Name Description
    System.Collections.Generic.List<System.Double> xValues

    xvalues

    System.Collections.Generic.IList<System.Double> yValues

    yvalues

    NaturalSpline(List<Double>, IList<Double>, out Double[])

    Method used to calculate the natural spline values.

    Declaration
    protected void NaturalSpline(List<double> xValues, IList<double> yValues, out double[] ys2)
    Parameters
    Type Name Description
    System.Collections.Generic.List<System.Double> xValues

    xvalues

    System.Collections.Generic.IList<System.Double> yValues

    yvalues

    System.Double[] ys2

    ys2

    OnChartDragEnd(Point, Object)

    Called when dragging end.

    Declaration
    protected override void OnChartDragEnd(Point mousePos, object originalSource)
    Parameters
    Type Name Description
    Windows.Foundation.Point mousePos

    mouse position

    System.Object originalSource

    original source

    Overrides
    XySegmentDraggingBase.OnChartDragEnd(Point, Object)

    OnChartDragStart(Point, Object)

    Called when dragging started.

    Declaration
    protected override void OnChartDragStart(Point mousePos, object originalSource)
    Parameters
    Type Name Description
    Windows.Foundation.Point mousePos

    mouse position

    System.Object originalSource

    original source

    Overrides
    XySegmentDraggingBase.OnChartDragStart(Point, Object)

    OnTapped(TappedRoutedEventArgs)

    Used to update the series tooltip when tapping on the series segments.

    Declaration
    protected override void OnTapped(TappedRoutedEventArgs e)
    Parameters
    Type Name Description
    Windows.UI.Xaml.Input.TappedRoutedEventArgs e

    TappedRoutedEventArgs

    Overrides
    ChartSeriesBase.OnTapped(TappedRoutedEventArgs)

    ResetDraggingElements(String, Boolean)

    Resets the dragging elements.

    Declaration
    protected override void ResetDraggingElements(string reason, bool dragEndEvent)
    Parameters
    Type Name Description
    System.String reason

    The reason.

    System.Boolean dragEndEvent

    if set to true, DragEndEvent will raise.

    Overrides
    XySeriesDraggingBase.ResetDraggingElements(String, Boolean)

    SelectedIndexChanged(Int32, Int32)

    Method used to set SegmentSelectionBrush to SelectedIndex segment.

    Declaration
    protected override void SelectedIndexChanged(int newIndex, int oldIndex)
    Parameters
    Type Name Description
    System.Int32 newIndex

    new index

    System.Int32 oldIndex

    old index

    Overrides
    ChartSeriesBase.SelectedIndexChanged(Int32, Int32)

    Implements

    ICloneable
    ISupportAxes2D
    ISupportAxes
    ISegmentSelectable

    Extension Methods

    DateTimeExtension.ToDateTime(Object)

    See Also

    SplineSegment
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved