skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadSparklineBase

Base class containing common functionality for all sparkline controls.

Inheritance
System.Object
RadSparklineBase
RadIndicatedSparklineBase
Namespace: Telerik.Windows.Controls.Sparklines
Assembly: Telerik.Windows.Controls.DataVisualization.dll

Syntax

public abstract class RadSparklineBase : Control, ISupportsDateTimeVirtualization

Constructors

RadSparklineBase()

Initializes a new instance of the RadSparklineBase class.

Declaration
protected RadSparklineBase()

Fields

AutoRangeProperty

Identifies the AutoRange dependency property.

Declaration
public static readonly DependencyProperty AutoRangeProperty
Field Value
System.Windows.DependencyProperty

AxisOriginValueProperty

Identifies the AxisOriginValue dependency property.

Declaration
public static readonly DependencyProperty AxisOriginValueProperty
Field Value
System.Windows.DependencyProperty

AxisStrokeProperty

Identifies the AxisStroke dependency property.

Declaration
public static readonly DependencyProperty AxisStrokeProperty
Field Value
System.Windows.DependencyProperty

AxisVisibilityProperty

Identifies the AxisVisibility dependency property.

Declaration
public static readonly DependencyProperty AxisVisibilityProperty
Field Value
System.Windows.DependencyProperty

AxisWidthProperty

Identifies the AxisWidth dependency property.

Declaration
public static readonly DependencyProperty AxisWidthProperty
Field Value
System.Windows.DependencyProperty

EmptyPointBehaviorProperty

Identifies the EmptyPointBehavior dependency property.

Declaration
public static readonly DependencyProperty EmptyPointBehaviorProperty
Field Value
System.Windows.DependencyProperty

ItemsSourceProperty

Identifies the ItemsSource dependency property.

Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
System.Windows.DependencyProperty

MaxXValueProperty

Identifies the MaxXValue dependency property.

Declaration
public static readonly DependencyProperty MaxXValueProperty
Field Value
System.Windows.DependencyProperty

MaxYValueProperty

Identifies the MaxYValue dependency property.

Declaration
public static readonly DependencyProperty MaxYValueProperty
Field Value
System.Windows.DependencyProperty

MinXValueProperty

Identifies the MinXValue dependency property.

Declaration
public static readonly DependencyProperty MinXValueProperty
Field Value
System.Windows.DependencyProperty

MinYValueProperty

Identifies the MinYValue dependency property.

Declaration
public static readonly DependencyProperty MinYValueProperty
Field Value
System.Windows.DependencyProperty

ShowAxisProperty

Identifies the ShowAxis dependency property.

Declaration
public static readonly DependencyProperty ShowAxisProperty
Field Value
System.Windows.DependencyProperty

XValuePathProperty

Identifies the XValuePath dependency property.

Declaration
public static readonly DependencyProperty XValuePathProperty
Field Value
System.Windows.DependencyProperty

YValuePathProperty

Identifies the XValuePath dependency property.

Declaration
public static readonly DependencyProperty YValuePathProperty
Field Value
System.Windows.DependencyProperty

ZeroYPositionProperty

Identifies the ZeroYPosition dependency property.

Declaration
public static readonly DependencyProperty ZeroYPositionProperty
Field Value
System.Windows.DependencyProperty

Properties

AutoRange

Gets or sets the AutoRange.

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

AxisOriginValue

Gets or sets the AxisOriginValue.

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

AxisStroke

Gets or sets the axis stroke.

Declaration
public Brush AxisStroke { get; set; }
Property Value
System.Windows.Media.Brush

The axis stroke.

AxisVisibility

This property supports the RadSparklineBase infrastructure and is not intended to be used directly from your code.

Declaration
public Visibility AxisVisibility { get; }
Property Value
System.Windows.Visibility

AxisWidth

Gets or sets the AxisWidth.

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

EmptyPointBehavior

Gets or sets the EmptyPointBehavior.

Declaration
public EmptyPointBehavior EmptyPointBehavior { get; set; }
Property Value
EmptyPointBehavior

ItemsSource

Gets or sets the items source property.

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

MaxXValue

Gets or sets the MaxXValue.

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

MaxYValue

Gets or sets the MaxYValue.

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

MinXValue

Gets or sets the MinXValue.

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

MinYValue

Gets or sets the MinYValue.

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

ShowAxis

Gets or sets a value indicating whether to show axis.

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

If show axis - true; otherwise, false.

VisualDataPoints

Gets the visual data points.

Declaration
protected IEnumerable<VisualDataPoint> VisualDataPoints { get; }
Property Value
System.Collections.Generic.IEnumerable<VisualDataPoint>

The visual data points.

XValuePath

Gets or sets the X value path.

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

YValuePath

Gets or sets the Y value path.

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

ZeroYPosition

This property supports the RadSparklineBase infrastructure and is not intended to be used directly from your code.

Declaration
public double ZeroYPosition { get; }
Property Value
System.Double

Methods

CalculateYPosition()

Calculates the Y position.

Declaration
protected virtual void CalculateYPosition()

IsVirtualizationEnabledChanged()

Occurs when the value of the property IsVirtualizationEnabled has changed.

Declaration
protected virtual void IsVirtualizationEnabledChanged()

MeasureOverride(Size)

Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.

Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
System.Windows.Size availableSize

The available size that this object can give to child objects. Infinity (System.Double.PositiveInfinity) can be specified as a value to indicate that the object will size to whatever content is available.

Returns
System.Windows.Size

The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects; or based on other considerations, such as a fixed container size.

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate.

Declaration
public override void OnApplyTemplate()

OnCreateAutomationPeer()

Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer

The type-specific System.Windows.Automation.Peers.AutomationPeer implementation.

OnDataChanged()

Called when underlying data has changed significantly and requires the control to redraw itself. Please use to synchronize non ItemsControl based graphics. For ItemsControl based graphics use UpdateItemsPanels().

Declaration
protected virtual void OnDataChanged()

OnEmptyPointBehaviorChanged()

Called when [empty point behavior changed].

Declaration
protected virtual void OnEmptyPointBehaviorChanged()

OnRangeChanged()

Called when range has changed.

Declaration
protected virtual void OnRangeChanged()

OnSizeChanged(Object, SizeChangedEventArgs)

Called when [size changed].

Declaration
protected virtual void OnSizeChanged(object sender, SizeChangedEventArgs e)
Parameters
System.Object sender

The sender.

System.Windows.SizeChangedEventArgs e

The System.Windows.SizeChangedEventArgs instance containing the event data.

OnVisibleDataChanged()

Called when the visible range changes.

Declaration
protected virtual void OnVisibleDataChanged()

UpdateItemsPanels()

This method is used to force the layout update of items panels when only the DataRange is changed. ItemsPanels update their layout automatically when items are added or removed from the ItemsControl or when the size of the control is updated.

DO NOT CALL when number of items in items source has changed!!!.

Declaration
protected virtual void UpdateItemsPanels()

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.