menu

UWP

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

    Show / Hide Table of Contents

    Class SparklineBase

    Represents the SparklineBase class.

    Inheritance
    System.Object
    SparklineBase
    ColumnBase
    MarkerBase
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.SfChart.UWP.dll
    Syntax
    public abstract class SparklineBase : Control

    Constructors

    SparklineBase()

    Initializes a new instance of the SparklineBase class.

    Declaration
    public SparklineBase()

    Fields

    BandRangeEndProperty

    The DependencyProperty for BandRangeEnd property.

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

    BandRangeStartProperty

    The DependencyProperty for BandRangeStart property.

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

    EmptyPointValueProperty

    The DependencyProperty for EmptyPointValue property.

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

    EnableAnimationProperty

    The DependencyProperty for EnableAnimation property.

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

    InteriorProperty

    The DependencyProperty for Interior property.

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

    ItemsSourceProperty

    The DependencyProperty for ItemsSource property.

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

    MaximumYValueProperty

    The DependencyProperty for MaximumYValue property.

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

    MinimumYValueProperty

    The DependencyProperty for MinimumYValue property.

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

    RangeBandBrushProperty

    The DependencyProperty for RangeBandBrush property.

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

    StrokeProperty

    The DependencyProperty for Stroke property.

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

    StrokeThicknessProperty

    The DependencyProperty for StrokeThickness property.

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

    YBindingPathProperty

    The DependencyProperty for YBindingPath property.

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

    Properties

    BandRangeEnd

    Gets or sets the maximum range band value in Y axis.

    Declaration
    public double BandRangeEnd { get; set; }
    Property Value
    Type
    System.Double

    BandRangeStart

    Gets or sets the minimum range band value in Y axis.

    Declaration
    public double BandRangeStart { get; set; }
    Property Value
    Type
    System.Double

    DataCount

    Gets or sets the data count.

    Declaration
    protected int DataCount { get; set; }
    Property Value
    Type
    System.Int32

    EmptyPointIndexes

    Gets or sets the empty point indexes.

    Declaration
    protected List<double> EmptyPointIndexes { get; set; }
    Property Value
    Type
    System.Collections.Generic.List<System.Double>

    EmptyPointValue

    Gets or sets a value that determines how to calculate value for empty point.

    Declaration
    public EmptyPointValues EmptyPointValue { get; set; }
    Property Value
    Type
    EmptyPointValues

    EnableAnimation

    Gets or sets a value indicating whether to animate the sparkline on loading and whenever ItemsSource change.

    Declaration
    public bool EnableAnimation { get; set; }
    Property Value
    Type
    System.Boolean

    Interior

    Gets or sets the brush to paint the interior of the sparkline.

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

    The value.

    ItemsSource

    Gets or sets an IEnumerable source used to generate sparkline.

    Declaration
    public IEnumerable ItemsSource { get; set; }
    Property Value
    Type
    System.Collections.IEnumerable

    MaximumYValue

    Gets or sets the maximum value for Y axis.

    Declaration
    public double MaximumYValue { get; set; }
    Property Value
    Type
    System.Double

    MinimumYValue

    Gets or sets the minimum value for Y axis.

    Declaration
    public double MinimumYValue { get; set; }
    Property Value
    Type
    System.Double

    RangeBandBrush

    Gets or sets the range band brush.

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

    The value.

    SegmentPresenter

    Gets or sets the segment presenter

    Declaration
    protected Canvas SegmentPresenter { get; set; }
    Property Value
    Type
    Windows.UI.Xaml.Controls.Canvas

    Stroke

    Gets or sets the brush to paint outline of the sparkline.

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

    The value.

    StrokeThickness

    Gets or sets stroke thickness for segments

    Declaration
    public double StrokeThickness { get; set; }
    Property Value
    Type
    System.Double

    YBindingPath

    Gets or sets the property path to retrieve y data from ItemsSource.

    Declaration
    public string YBindingPath { get; set; }
    Property Value
    Type
    System.String

    Methods

    add_OnSparklineMouseMove(SparklineMouseMoveHandler)

    Declaration
    public void add_OnSparklineMouseMove(SparklineMouseMoveHandler value)
    Parameters
    Type Name Description
    SparklineMouseMoveHandler value

    AnimateSegments(UIElementCollection)

    Animates the segments.

    Declaration
    protected virtual void AnimateSegments(UIElementCollection elements)
    Parameters
    Type Name Description
    Windows.UI.Xaml.Controls.UIElementCollection elements

    The Windows.UI.Xaml.Controls.UIElementCollection.

    GeneratePoints(String)

    Generate the points from the items source.

    Declaration
    protected virtual void GeneratePoints(string xPath)
    Parameters
    Type Name Description
    System.String xPath

    The x path.

    MeasureOverride(Size)

    Measures the size in layout required for child elements and determines a size for the sparkline.

    Declaration
    protected override Size MeasureOverride(Size availableSize)
    Parameters
    Type Name Description
    Windows.Foundation.Size availableSize

    The available size that this element can give to child elements.

    Returns
    Type Description
    Windows.Foundation.Size

    Returns the size that the element determines it needs during layout, based on its calculation of child element sizes.

    OnApplyTemplate()

    Method gets called when the default template is applied.

    Declaration
    protected override void OnApplyTemplate()

    OnPointerMoved(PointerRoutedEventArgs)

    Updates the pointer moved interactions for the sparkline.

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

    The Event Arguments

    remove_OnSparklineMouseMove(SparklineMouseMoveHandler)

    Declaration
    public void remove_OnSparklineMouseMove(SparklineMouseMoveHandler value)
    Parameters
    Type Name Description
    SparklineMouseMoveHandler value

    RenderSegments()

    To render the visual segments

    Declaration
    protected abstract void RenderSegments()

    Reset()

    Resets the sparkline values.

    Declaration
    public virtual void Reset()

    SetIndividualPoints(Int32, Object, Boolean, String)

    set the individual points to the existing collection

    Declaration
    protected virtual void SetIndividualPoints(int index, object obj, bool replace, string xPath)
    Parameters
    Type Name Description
    System.Int32 index

    The individual point index.

    System.Object obj

    The object.

    System.Boolean replace

    The replace indication System.Boolean

    System.String xPath

    The x path.

    TransformToVisible(Double, Double)

    Creates the screen point from data point.

    Declaration
    public virtual Point TransformToVisible(double x, double y)
    Parameters
    Type Name Description
    System.Double x

    The x value.

    System.Double y

    The y value.

    Returns
    Type Description
    Windows.Foundation.Point

    Returns the corresponding screen co-ordinate.

    UpdateArea()

    To update the sparkline

    Declaration
    public void UpdateArea()

    UpdateMinMaxValues()

    Updates the minimum and maximum value.

    Declaration
    protected virtual void UpdateMinMaxValues()

    Events

    OnSparklineMouseMove

    Raised when the sparkline mouse gets moved.

    Declaration
    public event SparklineMouseMoveHandler OnSparklineMouseMove
    Event Type
    Type
    SparklineMouseMoveHandler

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved