• 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 jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Design
    Unite UX
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadChartBase

Base class for all different charts. Different chart controls are categorized mainly by the coordinate system used to plot their points.

Inheritance
System.Object
RadControlBase
PresenterBase
RadChartBase
RadCartesianChart
RadFunnelChart
RadPieChart
RadPolarChart
Inherited Members
PresenterBase.InfinitySize
PresenterBase.InfinityPoint
PresenterBase.IChartElementPresenter.MeasureContent(ChartNode, Object)
PresenterBase.IChartElementPresenter.MeasureVisual(ChartNode, RadSize)
PresenterBase.RefreshNode(ChartNode)
PresenterBase.InvalidatePalette()
PresenterBase.MeasureNodeOverride(ChartNode, Object)
PresenterBase.RefreshNodeCore(ChartNode)
PresenterBase.CreateContentPresenter(Object, DataTemplate)
PresenterBase.IChartElementPresenter.IsVisible
PresenterBase.RenderSurface
RadControlBase.IsLoaded
RadControlBase.IsTemplateApplied
Namespace: Telerik.Windows.Controls.ChartView
Assembly: Telerik.Windows.Controls.Chart.dll

Syntax

public abstract class RadChartBase : PresenterBase, IChartElementPresenterWithMargin, IChartView, IChartElementPresenter, IChart, IThemable

Constructors

RadChartBase()

Initializes a new instance of the RadChartBase class.

Declaration
protected RadChartBase()

Fields

AnnotationsProviderProperty

Identifies the AnnotationsProvider dependency property.

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

BehaviorsProperty

Identifies the Behaviors dependency property.

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

DragZoomBorderStyleProperty

Identifies the DragZoomBorderStyle dependency property.

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

EmptyContentProperty

Identifies the EmptyContent dependency property.

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

EmptyContentTemplateProperty

Identifies the EmptyContentTemplate dependency property.

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

MaxZoomProperty

Identifies the MaxZoom dependency property.

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

MinZoomProperty

Identifies the MinZoom dependency property.

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

PaletteProperty

Identifies the Palette dependency property.

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

PanOffsetProperty

Identifies the PanOffset dependency property.

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

PlotAreaStyleProperty

Identifies the PlotAreaStyle dependency property.

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

SelectedPointsProperty

Identifies the SelectedPoints dependency property.

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

SelectionPaletteProperty

Identifies the SelectionPalette dependency property.

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

SeriesProviderProperty

Identifies the SeriesProvider dependency property.

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

TooltipTemplateProperty

Identifies the TooltipTemplate property.

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

TrackBallInfoStyleProperty

Identifies the TrackBallInfoStyle property.

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

TrackBallLineStyleProperty

Identifies the TrackBallLineStyle property.

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

ZoomProperty

Identifies the Zoom dependency property.

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

Properties

AnnotationsProvider

Gets or sets an object that may be used to create chart annotations dynamically, depending on the underlying data.

Declaration
public ChartAnnotationsProvider AnnotationsProvider { get; set; }
Property Value
ChartAnnotationsProvider

Behaviors

Gets a collection of chart behaviors. For example a ChartToolTipBehavior can be added to this collection which will enable tooltips on certain gestures.

Declaration
public ChartBehaviorCollection Behaviors { get; }
Property Value
ChartBehaviorCollection

DragZoomBorderStyle

Gets or sets the style applied to the rectangular visual hint on drag-zooming with the mouse within the plot area.

Declaration
public Style DragZoomBorderStyle { get; set; }
Property Value
System.Windows.Style

EmptyContent

Gets or sets the content to be displayed when the chart is either not properly initialized or missing data.

Declaration
public object EmptyContent { get; set; }
Property Value
System.Object

EmptyContentTemplate

Gets or sets the System.Windows.DataTemplate that defines the visual tree of the System.Windows.Controls.ContentPresenter instance that visualized the EmptyContent property.

Declaration
public DataTemplate EmptyContentTemplate { get; set; }
Property Value
System.Windows.DataTemplate

LegendItems

Gets the legend items.

Declaration
public LegendItemCollection LegendItems { get; }
Property Value
LegendItemCollection

MaxZoom

Gets or sets the maximum allowed zoom for this instance.

Declaration
public Size MaxZoom { get; set; }
Property Value
System.Windows.Size

MinZoom

Gets or sets the minimum allowed zoom for this instance.

Declaration
public Size MinZoom { get; set; }
Property Value
System.Windows.Size

Palette

Gets or sets the ChartPalette instance that defines the appearance of the chart.

Declaration
public ChartPalette Palette { get; set; }
Property Value
ChartPalette

PanOffset

Gets or sets the origin used to calculate the arrange box of the chart area.

Declaration
public Point PanOffset { get; set; }
Property Value
System.Windows.Point

PlotAreaClip

Gets the clip that encloses the plot area in view coordinates - that is without the zoom factor applied and with the pan offset calculated.

Declaration
public virtual RadRect PlotAreaClip { get; }
Property Value
RadRect

PlotAreaStyle

Gets or sets the System.Windows.Style instance that describes the visual appearance of the plot area. The style should target the System.Windows.Controls.Border type.

Declaration
public Style PlotAreaStyle { get; set; }
Property Value
System.Windows.Style

SelectedPoints

Gets or sets the selected data points.

Declaration
public ReadOnlyDataPointCollection SelectedPoints { get; set; }
Property Value
ReadOnlyDataPointCollection

SelectionPalette

Gets or sets the ChartPalette instance that defines the appearance of the chart for selected series and/or data points.

Declaration
public ChartPalette SelectionPalette { get; set; }
Property Value
ChartPalette

SeriesProvider

Gets or sets an object that may be used to create chart series dynamically, depending on the underlying data.

Declaration
public ChartSeriesProvider SeriesProvider { get; set; }
Property Value
ChartSeriesProvider

TooltipTemplate

Gets or sets the ContentTemplate of the tooltip that is shown by the ChartTooltipBehavior. This property has a lower priority than the TooltipTemplate property of the series.

Declaration
public DataTemplate TooltipTemplate { get; set; }
Property Value
System.Windows.DataTemplate

TrackBallInfoStyle

Gets or sets the System.Windows.Style that defines the appearance of the TrackInfo control displayed by a ChartTrackBallBehavior instance. The style should target the TrackBallInfoControl type.

Declaration
public Style TrackBallInfoStyle { get; set; }
Property Value
System.Windows.Style

TrackBallLineStyle

Gets or sets the System.Windows.Style that defines the appearance of the line displayed by a ChartTrackBallBehavior instance. The style should target the System.Windows.Shapes.Polyline type.

Declaration
public Style TrackBallLineStyle { get; set; }
Property Value
System.Windows.Style

Zoom

Gets or sets the current zoom (scale) of the chart.

Declaration
public Size Zoom { get; set; }
Property Value
System.Windows.Size

Methods

ArrangeOverride(Size)

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

Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
System.Windows.Size finalSize

The final area within the parent that this object should use to arrange itself and its children.

Returns
System.Windows.Size

The actual size that is used after the element is arranged in layout.

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

Declaration
public override void OnApplyTemplate()
Overrides
PresenterBase.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.

OnInitialized(EventArgs)

Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.

Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs e

The System.Windows.RoutedEventArgs that contains the event data.

Overrides
PresenterBase.OnInitialized(EventArgs)

OnLoaded(Object, RoutedEventArgs)

Occurs when a System.Windows.FrameworkElement has been constructed and added to the object tree.

Declaration
protected override void OnLoaded(object sender, RoutedEventArgs e)
Parameters
System.Object sender

System.Windows.RoutedEventArgs e

Overrides
RadControlBase.OnLoaded(Object, RoutedEventArgs)

OnPanOffsetChanged(ChartPanOffsetChangedEventArgs)

Raises the PanOffsetChanged event.

Declaration
protected virtual void OnPanOffsetChanged(ChartPanOffsetChangedEventArgs args)
Parameters
ChartPanOffsetChangedEventArgs args

The ChartPanOffsetChangedEventArgs instance containing the event data.

OnUnloaded(Object, RoutedEventArgs)

Occurs when this object is no longer connected to the main object tree.

Declaration
protected override void OnUnloaded(object sender, RoutedEventArgs e)
Parameters
System.Object sender

System.Windows.RoutedEventArgs e

Overrides
RadControlBase.OnUnloaded(Object, RoutedEventArgs)

OnZoomChanged(ChartZoomChangedEventArgs)

Raises the ZoomChanged event.

Declaration
protected virtual void OnZoomChanged(ChartZoomChangedEventArgs args)
Parameters
ChartZoomChangedEventArgs args

The ChartZoomChangedEventArgs instance containing the event data.

ResetTheme()

Resets the control theme.

Declaration
public void ResetTheme()

UpdateChartArea()

Prepares the plot area model so that it may be visualized.

Declaration
protected virtual void UpdateChartArea()

Events

PanOffsetChanged

Occurs when the chart pan offset has changed.

Declaration
public event EventHandler<ChartPanOffsetChangedEventArgs> PanOffsetChanged
Event Type
System.EventHandler<ChartPanOffsetChangedEventArgs>

PlotAreaClipChanged

Occurs when the chart's plot area gets changed.

Declaration
public event EventHandler PlotAreaClipChanged
Event Type
System.EventHandler

UIUpdated

Occurs when the chart's UI is updated.

Declaration
public event EventHandler UIUpdated
Event Type
System.EventHandler

ZoomChanged

Occurs when the chart zoom has changed.

Declaration
public event EventHandler<ChartZoomChangedEventArgs> ZoomChanged
Event Type
System.EventHandler<ChartZoomChangedEventArgs>

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)

Was this article helpful?

Tell us how we can improve this article

Skip
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.