Class
RadChartBase

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

Definition

Namespace:Telerik.UI.Xaml.Controls.Chart

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public abstract class RadChartBase : PresenterBase, IChartView, IChartElementPresenter, IView, IElementPresenter, ILegendInfoProvider

Inheritance: objectRadControlPresenterBaseRadChartBase

Derived Classes: RadCartesianChartRadPieChartRadPolarChart

Implements: IChartElementPresenterIChartViewIElementPresenterILegendInfoProviderIView

Inherited Members PresenterBase.InfinitySizePresenterBase.InfinityPointPresenterBase.RefreshNode(object)PresenterBase.InvalidatePalette()PresenterBase.MeasureNodeOverride(Node, object)PresenterBase.RefreshNodeCore(Node)PresenterBase.CreateContentPresenter(object, DataTemplate)PresenterBase.RenderSurfacePresenterBase.CompositorPresenterBase.ContainerVisualRootRadControl.EndVisualStateUpdate(bool, bool)RadControl.UpdateVisualState(bool)RadControl.BeginVisualStateUpdate()RadControl.SetVisualState(string, bool)RadControl.CanUpdateVisualState()RadControl.ComposeVisualStateName()RadControl.MeasureOverride(Size)RadControl.OnApplyTemplate()RadControl.OnIsEnabledChanged(bool, bool)RadControl.OnLoaded()RadControl.CurrentVisualStateRadControl.IsLoadedRadControl.IsLoadingRadControl.IsUnloadedRadControl.WasUnloadedRadControl.IsTemplateApplied

Constructors

RadChartBase()

Initializes a new instance of the RadChartBase class.

Declaration

cs-api-definition
protected RadChartBase()

Fields

ContainerVisualsFactoryProperty

Identifies the ContainerVisualsFactory dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ContainerVisualsFactoryProperty

Field Value

DependencyProperty

EmptyContentProperty

Identifies the EmptyContent dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EmptyContentProperty

Field Value

DependencyProperty

EmptyContentTemplateProperty

Identifies the EmptyContentTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EmptyContentTemplateProperty

Field Value

DependencyProperty

MaxZoomProperty

Identifies the MaxZoom dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MaxZoomProperty

Field Value

DependencyProperty

MinZoomProperty

Identifies the MaxZoom dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinZoomProperty

Field Value

DependencyProperty

PaletteNameProperty

Identifies the PaletteName dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PaletteNameProperty

Field Value

DependencyProperty

PaletteProperty

Identifies the Palette dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PaletteProperty

Field Value

DependencyProperty

PlotAreaStyleProperty

Identifies the PlotAreaStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PlotAreaStyleProperty

Field Value

DependencyProperty

ScrollOffsetProperty

Identifies the ScrollOffset dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ScrollOffsetProperty

Field Value

DependencyProperty

SelectionPaletteNameProperty

Identifies the SelectionPaletteName dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectionPaletteNameProperty

Field Value

DependencyProperty

SelectionPaletteProperty

Identifies the SelectionPalette dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectionPaletteProperty

Field Value

DependencyProperty

SeriesProviderProperty

Identifies the SeriesProvider dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SeriesProviderProperty

Field Value

DependencyProperty

ZoomProperty

Identifies the Zoom dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ZoomProperty

Field Value

DependencyProperty

Properties

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

cs-api-definition
public ChartBehaviorCollection Behaviors { get; }

Property Value

ChartBehaviorCollection

ClipToBounds

Gets or sets a value indicating whether the chart content will be clipped to the control's bounds.

Declaration

cs-api-definition
public bool ClipToBounds { get; set; }

Property Value

bool

ContainerVisualsFactory

Gets or sets the ContainerVisualsFactory of the presenter.

Declaration

cs-api-definition
public ContainerVisualsFactory ContainerVisualsFactory { get; set; }

Property Value

ContainerVisualsFactory

EmptyContent

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

Declaration

cs-api-definition
public object EmptyContent { get; set; }

Property Value

object

EmptyContentTemplate

Gets or sets the DataTemplate that defines the visual tree of the ContentPresenter instance that visualized the property.

Declaration

cs-api-definition
public DataTemplate EmptyContentTemplate { get; set; }

Property Value

DataTemplate

MaxZoom

Gets or sets the maximum allowed zoom for this instance.

Declaration

cs-api-definition
public Size MaxZoom { get; set; }

Property Value

Size

MinZoom

Gets or sets the minimum allowed zoom for this instance.

Declaration

cs-api-definition
public Size MinZoom { get; set; }

Property Value

Size

Palette

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

Declaration

cs-api-definition
public ChartPalette Palette { get; set; }

Property Value

ChartPalette

PaletteName

Gets or sets the PaletteName value used to apply a predefined palette to the chart.

Declaration

cs-api-definition
public PredefinedPaletteName PaletteName { get; set; }

Property Value

PredefinedPaletteName

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

cs-api-definition
public RadRect PlotAreaClip { get; }

Property Value

RadRect

Implements IChartView.PlotAreaClip

PlotAreaStyle

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

Declaration

cs-api-definition
public Style PlotAreaStyle { get; set; }

Property Value

Style

PlotOrigin

Gets the origin of the plot area relative to the viewport.

Declaration

cs-api-definition
public Point PlotOrigin { get; }

Property Value

Point

ScrollOffset

Gets or sets the origin used to calculate the arrange box of the chart area. The value is in units relative to the viewport size. For example value of (-1, 0) will scroll the chart scene to the left with the width of the viewport.

Declaration

cs-api-definition
public Point ScrollOffset { get; set; }

Property Value

Point

SelectionPalette

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

Declaration

cs-api-definition
public ChartPalette SelectionPalette { get; set; }

Property Value

ChartPalette

SelectionPaletteName

Gets or sets the PaletteName value used to apply a predefined palette to the chart.

Declaration

cs-api-definition
public PredefinedPaletteName SelectionPaletteName { get; set; }

Property Value

PredefinedPaletteName

SeriesProvider

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

Declaration

cs-api-definition
public ChartSeriesProvider SeriesProvider { get; set; }

Property Value

ChartSeriesProvider

Zoom

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

Declaration

cs-api-definition
public Size Zoom { get; set; }

Property Value

Size

Methods

ApplyTemplateCore()

Initializes the required template parts.

Declaration

cs-api-definition
protected override bool ApplyTemplateCore()

Returns

bool

Overrides PresenterBase.ApplyTemplateCore()

ArrangeOverride(Size)

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

Declaration

cs-api-definition
protected override Size ArrangeOverride(Size finalSize)

Parameters

finalSize

Size

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

Returns

Size

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

Overrides RadControl.ArrangeOverride(Size)

GetDataContextCore(Point, ChartPointDistanceCalculationMode)

Gets ChartDataContext associated with a gives physical location.

Declaration

cs-api-definition
protected virtual ChartDataContext GetDataContextCore(Point tapLocation, ChartPointDistanceCalculationMode pointDistanceMode)

Parameters

tapLocation

Point

The relative physical position of the requested data context.

pointDistanceMode

ChartPointDistanceCalculationMode

The point distance calculation mode to be used in finding closest point.

Returns

ChartDataContext

Returns ChartDataContext object holding information for the requested physical location.

InvalidateUI()

Invalidates the current visual representation of the chart and schedules a new update that will run asynchronously.

Declaration

cs-api-definition
public void InvalidateUI()

LoadCore()

Loads any assigned behaviors.

Declaration

cs-api-definition
protected override void LoadCore()

Overrides RadControl.LoadCore()

OnCreateAutomationPeer()

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

Overrides RadControl.OnCreateAutomationPeer()

OnDoubleTapped(DoubleTappedRoutedEventArgs)

Called before the DoubleTapped event occurs.

Declaration

cs-api-definition
protected override void OnDoubleTapped(DoubleTappedRoutedEventArgs e)

Parameters

e

DoubleTappedRoutedEventArgs

OnHolding(HoldingRoutedEventArgs)

Called before the Holding event occurs.

Declaration

cs-api-definition
protected override void OnHolding(HoldingRoutedEventArgs e)

Parameters

e

HoldingRoutedEventArgs

OnManipulationCompleted(ManipulationCompletedRoutedEventArgs)

Called before the ManipulationCompleted event occurs.

Declaration

cs-api-definition
protected override void OnManipulationCompleted(ManipulationCompletedRoutedEventArgs e)

Parameters

e

ManipulationCompletedRoutedEventArgs

OnManipulationDelta(ManipulationDeltaRoutedEventArgs)

Called before the ManipulationDelta event occurs.

Declaration

cs-api-definition
protected override void OnManipulationDelta(ManipulationDeltaRoutedEventArgs e)

Parameters

e

ManipulationDeltaRoutedEventArgs

OnManipulationStarted(ManipulationStartedRoutedEventArgs)

Called before the ManipulationStarted event occurs.

Declaration

cs-api-definition
protected override void OnManipulationStarted(ManipulationStartedRoutedEventArgs e)

Parameters

e

ManipulationStartedRoutedEventArgs

OnPointerEntered(PointerRoutedEventArgs)

Called before the PointerEntered event occurs.

Declaration

cs-api-definition
protected override void OnPointerEntered(PointerRoutedEventArgs e)

Parameters

e

PointerRoutedEventArgs

OnPointerExited(PointerRoutedEventArgs)

Called before the PointerExitedPressed event occurs.

Declaration

cs-api-definition
protected override void OnPointerExited(PointerRoutedEventArgs e)

Parameters

e

PointerRoutedEventArgs

OnPointerMoved(PointerRoutedEventArgs)

Called before the PointerMoved event occurs.

Declaration

cs-api-definition
protected override void OnPointerMoved(PointerRoutedEventArgs e)

Parameters

e

PointerRoutedEventArgs

OnPointerPressed(PointerRoutedEventArgs)

Called before the PointerPressed event occurs.

Declaration

cs-api-definition
protected override void OnPointerPressed(PointerRoutedEventArgs e)

Parameters

e

PointerRoutedEventArgs

OnPointerReleased(PointerRoutedEventArgs)

Called before the PointerReleased event occurs.

Declaration

cs-api-definition
protected override void OnPointerReleased(PointerRoutedEventArgs e)

Parameters

e

PointerRoutedEventArgs

OnPointerWheelChanged(PointerRoutedEventArgs)

Called before the PointerWheelChanged event occurs.

Declaration

cs-api-definition
protected override void OnPointerWheelChanged(PointerRoutedEventArgs e)

Parameters

e

PointerRoutedEventArgs

OnTapped(TappedRoutedEventArgs)

Called before the Tapped event occurs.

Declaration

cs-api-definition
protected override void OnTapped(TappedRoutedEventArgs e)

Parameters

e

TappedRoutedEventArgs

OnTemplateApplied()

Occurs when the method has been called and the template is already successfully applied.

Declaration

cs-api-definition
protected override void OnTemplateApplied()

Overrides RadControl.OnTemplateApplied()

UnapplyTemplateCore()

Removes the current control template. Occurs when a template has already been applied and a new one is applied.

Declaration

cs-api-definition
protected override void UnapplyTemplateCore()

Overrides RadControl.UnapplyTemplateCore()

UnloadCore()

Removes behavior subscriptions.

Declaration

cs-api-definition
protected override void UnloadCore()

Overrides RadControl.UnloadCore()

UpdateChartArea()

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

Declaration

cs-api-definition
protected virtual void UpdateChartArea()