New to Telerik UI for WPFStart a free 30-day trial

Sparkline that displays a set of data points connected by a line. Supports indicators and normal range.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
[TelerikToolboxCategory("Data Visualization")]
public class RadLinearSparkline : RadLinearSparklineBase

Inheritance: objectRadSparklineBaseRadIndicatedSparklineBaseRadLinearSparklineBaseRadLinearSparkline

Inherited Members RadLinearSparklineBase.LinePointsPropertyRadLinearSparklineBase.IndicatorsPointsPropertyRadLinearSparklineBase.IndicatorsVisibilityPropertyRadLinearSparklineBase.MarkersBrushPropertyRadLinearSparklineBase.MarkersStylePropertyRadLinearSparklineBase.ShowMarkersPropertyRadLinearSparklineBase.IndicatorStylePropertyRadLinearSparklineBase.CalculateBaseLinePoints()RadLinearSparklineBase.OnVisibleDataChanged()RadLinearSparklineBase.OnEmptyPointBehaviorChanged()RadLinearSparklineBase.OnRangeChanged()RadLinearSparklineBase.SynchronizeIndicatorsData()RadLinearSparklineBase.SynchronizePoints()RadLinearSparklineBase.UpdateLineVisibility()RadLinearSparklineBase.IndicatorStyleRadLinearSparklineBase.MarkersBrushRadLinearSparklineBase.MarkersStyleRadLinearSparklineBase.ShowMarkersRadLinearSparklineBase.LinePointsRadLinearSparklineBase.IndicatorsPointsRadLinearSparklineBase.IndicatorsVisibilityRadIndicatedSparklineBase.FirstPointBrushPropertyRadIndicatedSparklineBase.FirstPointStylePropertyRadIndicatedSparklineBase.LastPointBrushPropertyRadIndicatedSparklineBase.LastPointStylePropertyRadIndicatedSparklineBase.HighPointBrushPropertyRadIndicatedSparklineBase.HighPointStylePropertyRadIndicatedSparklineBase.LowPointBrushPropertyRadIndicatedSparklineBase.LowPointStylePropertyRadIndicatedSparklineBase.NegativePointBrushPropertyRadIndicatedSparklineBase.NegativePointStylePropertyRadIndicatedSparklineBase.ShowFirstPointIndicatorPropertyRadIndicatedSparklineBase.ShowHighPointIndicatorsPropertyRadIndicatedSparklineBase.ShowLastPointIndicatorPropertyRadIndicatedSparklineBase.ShowLowPointIndicatorsPropertyRadIndicatedSparklineBase.ShowNegativePointIndicatorsPropertyRadIndicatedSparklineBase.OnApplyTemplate()RadIndicatedSparklineBase.OnIndicatorPropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)RadIndicatedSparklineBase.IsVirtualizationEnabledChanged()RadIndicatedSparklineBase.UpdateItemsPanels()RadIndicatedSparklineBase.SynchronizeIndicatorsVisuals()RadIndicatedSparklineBase.FirstPointBrushRadIndicatedSparklineBase.FirstPointStyleRadIndicatedSparklineBase.LastPointBrushRadIndicatedSparklineBase.LastPointStyleRadIndicatedSparklineBase.HighPointBrushRadIndicatedSparklineBase.HighPointStyleRadIndicatedSparklineBase.LowPointBrushRadIndicatedSparklineBase.LowPointStyleRadIndicatedSparklineBase.NegativePointBrushRadIndicatedSparklineBase.NegativePointStyleRadIndicatedSparklineBase.ShowFirstPointIndicatorRadIndicatedSparklineBase.ShowHighPointIndicatorsRadIndicatedSparklineBase.ShowLastPointIndicatorRadIndicatedSparklineBase.ShowLowPointIndicatorsRadIndicatedSparklineBase.ShowNegativePointIndicatorsRadSparklineBase.YValuePathPropertyRadSparklineBase.XValuePathPropertyRadSparklineBase.AutoRangePropertyRadSparklineBase.AxisVisibilityPropertyRadSparklineBase.AxisStrokePropertyRadSparklineBase.ItemsSourcePropertyRadSparklineBase.MaxYValuePropertyRadSparklineBase.MinYValuePropertyRadSparklineBase.MinXValuePropertyRadSparklineBase.MaxXValuePropertyRadSparklineBase.EmptyPointBehaviorPropertyRadSparklineBase.ShowAxisPropertyRadSparklineBase.ZeroYPositionPropertyRadSparklineBase.AxisOriginValuePropertyRadSparklineBase.AxisWidthPropertyRadSparklineBase.OnCreateAutomationPeer()RadSparklineBase.CalculateYPosition()RadSparklineBase.MeasureOverride(Size)RadSparklineBase.AutoRangeRadSparklineBase.AxisOriginValueRadSparklineBase.AxisWidthRadSparklineBase.AxisStrokeRadSparklineBase.EmptyPointBehaviorRadSparklineBase.ItemsSourceRadSparklineBase.MaxYValueRadSparklineBase.MinYValueRadSparklineBase.MinXValueRadSparklineBase.MaxXValueRadSparklineBase.ShowAxisRadSparklineBase.XValuePathRadSparklineBase.YValuePathRadSparklineBase.ZeroYPositionRadSparklineBase.AxisVisibilityRadSparklineBase.VisualDataPoints...

Constructors

Initializes a new instance of the RadLinearSparkline class.

C#
public RadLinearSparkline()

Fields

LineShapeStyleProperty

DependencyProperty

Identifies the LineShapeStyle dependency property.

C#
public static readonly DependencyProperty LineShapeStyleProperty

LineShapeVisibilityProperty

DependencyProperty

Identifies the LineShapeVisibility dependency property.

C#
public static readonly DependencyProperty LineShapeVisibilityProperty

LineStrokeProperty

DependencyProperty

Identifies the LineStroke dependency property.

C#
public static readonly DependencyProperty LineStrokeProperty

NormalRangeBottomProperty

DependencyProperty

Identifies the NormalRangeBottom dependency property.

C#
public static readonly DependencyProperty NormalRangeBottomProperty

NormalRangeFillProperty

DependencyProperty

Identifies the NormalRangeFill dependency property.

C#
public static readonly DependencyProperty NormalRangeFillProperty

NormalRangeRectProperty

DependencyProperty

Identifies the NormalRangeRect dependency property.

C#
public static readonly DependencyProperty NormalRangeRectProperty

NormalRangeTopProperty

DependencyProperty

Identifies the NormalRangeTop dependency property.

C#
public static readonly DependencyProperty NormalRangeTopProperty

Identifies the NormalRangeVisibility dependency property.

C#
public static readonly DependencyProperty NormalRangeVisibilityProperty

ShowNormalRangeProperty

DependencyProperty

Identifies the ShowNormalRange dependency property.

C#
public static readonly DependencyProperty ShowNormalRangeProperty

Properties

Gets or sets the LineShapeStyle.

C#
public Style LineShapeStyle { get; set; }

Gets or sets the line stroke.

C#
public Brush LineStroke { get; set; }
Property Value:

The line stroke.

Gets or sets the normal range bottom.

C#
public double NormalRangeBottom { get; set; }
Property Value:

The normal range bottom.

Gets or sets the normal range brush.

C#
public Brush NormalRangeFill { get; set; }
Property Value:

The normal range brush.

Gets or sets the normal range top.

C#
public double NormalRangeTop { get; set; }
Property Value:

The normal range top.

Gets or sets a value indicating whether to show normal range.

C#
public bool ShowNormalRange { get; set; }
Property Value:

If show normal rangetrue; otherwise, false.

Methods

Hides the line geometry.

C#
protected override void HideLineGeometry()

Overrides: RadLinearSparklineBase.HideLineGeometry()

Called when underlying data has changed significantly and requires the control to redraw itself.

C#
protected override void OnDataChanged()

Overrides: RadLinearSparklineBase.OnDataChanged()

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Called when [size changed].

C#
protected override void OnSizeChanged(object sender, SizeChangedEventArgs e)
Parameters:senderobject

The sender.

eSizeChangedEventArgs

The SizeChangedEventArgs instance containing the event data.

Overrides: RadLinearSparklineBase.OnSizeChanged(object, SizeChangedEventArgs)

Shows the line geometry.

C#
protected override void ShowLineGeometry()

Overrides: RadLinearSparklineBase.ShowLineGeometry()