ClassRadChartBase
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:
public abstract class RadChartBase : PresenterBase, IChartView, IChartElementPresenter, IView, IElementPresenter, ILegendInfoProvider
Inheritance: objectRadControlPresenterBaseRadChartBase
Derived Classes:
Implements:
Inherited Members
Constructors
RadChartBase()
Initializes a new instance of the RadChartBase class.
Declaration
protected RadChartBase()
Fields
ContainerVisualsFactoryProperty
Identifies the ContainerVisualsFactory dependency property.
Declaration
public static readonly DependencyProperty ContainerVisualsFactoryProperty
Field Value
DependencyProperty
EmptyContentProperty
Identifies the EmptyContent dependency property.
Declaration
public static readonly DependencyProperty EmptyContentProperty
Field Value
DependencyProperty
EmptyContentTemplateProperty
Identifies the EmptyContentTemplate dependency property.
Declaration
public static readonly DependencyProperty EmptyContentTemplateProperty
Field Value
DependencyProperty
MaxZoomProperty
Identifies the MaxZoom dependency property.
Declaration
public static readonly DependencyProperty MaxZoomProperty
Field Value
DependencyProperty
MinZoomProperty
Identifies the MaxZoom dependency property.
Declaration
public static readonly DependencyProperty MinZoomProperty
Field Value
DependencyProperty
PaletteNameProperty
Identifies the PaletteName dependency property.
Declaration
public static readonly DependencyProperty PaletteNameProperty
Field Value
DependencyProperty
PaletteProperty
Identifies the Palette dependency property.
Declaration
public static readonly DependencyProperty PaletteProperty
Field Value
DependencyProperty
PlotAreaStyleProperty
Identifies the PlotAreaStyle dependency property.
Declaration
public static readonly DependencyProperty PlotAreaStyleProperty
Field Value
DependencyProperty
ScrollOffsetProperty
Identifies the ScrollOffset dependency property.
Declaration
public static readonly DependencyProperty ScrollOffsetProperty
Field Value
DependencyProperty
SelectionPaletteNameProperty
Identifies the SelectionPaletteName dependency property.
Declaration
public static readonly DependencyProperty SelectionPaletteNameProperty
Field Value
DependencyProperty
SelectionPaletteProperty
Identifies the SelectionPalette dependency property.
Declaration
public static readonly DependencyProperty SelectionPaletteProperty
Field Value
DependencyProperty
SeriesProviderProperty
Identifies the SeriesProvider dependency property.
Declaration
public static readonly DependencyProperty SeriesProviderProperty
Field Value
DependencyProperty
ZoomProperty
Identifies the Zoom dependency property.
Declaration
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
public ChartBehaviorCollection Behaviors { get; }
Property Value
ClipToBounds
Gets or sets a value indicating whether the chart content will be clipped to the control's bounds.
ContainerVisualsFactory
Gets or sets the ContainerVisualsFactory of the presenter.
Declaration
public ContainerVisualsFactory ContainerVisualsFactory { get; set; }
Property Value
EmptyContent
Gets or sets the content to be displayed when the chart is either not properly initialized or missing data.
EmptyContentTemplate
Gets or sets the DataTemplate that defines the visual tree of the ContentPresenter instance that visualized the property.
Declaration
public DataTemplate EmptyContentTemplate { get; set; }
Property Value
DataTemplate
MaxZoom
Gets or sets the maximum allowed zoom for this instance.
Declaration
public Size MaxZoom { get; set; }
Property Value
Size
MinZoom
Gets or sets the minimum allowed zoom for this instance.
Declaration
public Size MinZoom { get; set; }
Property Value
Size
Palette
Gets or sets the ChartPalette instance that defines the appearance of the chart.
PaletteName
Gets or sets the PaletteName value used to apply a predefined palette to the chart.
Declaration
public PredefinedPaletteName PaletteName { get; set; }
Property Value
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 RadRect PlotAreaClip { get; }
Property Value
Implements
PlotAreaStyle
Gets or sets the Style instance that describes the visual appearance of the plot area. The style should target the Border type.
Declaration
public Style PlotAreaStyle { get; set; }
Property Value
Style
PlotOrigin
Gets the origin of the plot area relative to the viewport.
Declaration
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
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
public ChartPalette SelectionPalette { get; set; }
Property Value
SelectionPaletteName
Gets or sets the PaletteName value used to apply a predefined palette to the chart.
Declaration
public PredefinedPaletteName SelectionPaletteName { get; set; }
Property Value
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
Zoom
Gets or sets the current zoom (scale) of the chart.
Declaration
public Size Zoom { get; set; }
Property Value
Size
Methods
ApplyTemplateCore()
Initializes the required template parts.
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
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
GetDataContextCore(Point, ChartPointDistanceCalculationMode)
Gets ChartDataContext associated with a gives physical location.
Declaration
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
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
public void InvalidateUI()
LoadCore()
Loads any assigned behaviors.
Declaration
protected override void LoadCore()
Overrides
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
Overrides
OnDoubleTapped(DoubleTappedRoutedEventArgs)
Called before the DoubleTapped event occurs.
Declaration
protected override void OnDoubleTapped(DoubleTappedRoutedEventArgs e)
Parameters
e
DoubleTappedRoutedEventArgs
OnHolding(HoldingRoutedEventArgs)
Called before the Holding event occurs.
Declaration
protected override void OnHolding(HoldingRoutedEventArgs e)
Parameters
e
HoldingRoutedEventArgs
OnManipulationCompleted(ManipulationCompletedRoutedEventArgs)
Called before the ManipulationCompleted event occurs.
Declaration
protected override void OnManipulationCompleted(ManipulationCompletedRoutedEventArgs e)
Parameters
e
ManipulationCompletedRoutedEventArgs
OnManipulationDelta(ManipulationDeltaRoutedEventArgs)
Called before the ManipulationDelta event occurs.
Declaration
protected override void OnManipulationDelta(ManipulationDeltaRoutedEventArgs e)
Parameters
e
ManipulationDeltaRoutedEventArgs
OnManipulationStarted(ManipulationStartedRoutedEventArgs)
Called before the ManipulationStarted event occurs.
Declaration
protected override void OnManipulationStarted(ManipulationStartedRoutedEventArgs e)
Parameters
e
ManipulationStartedRoutedEventArgs
OnPointerEntered(PointerRoutedEventArgs)
Called before the PointerEntered event occurs.
Declaration
protected override void OnPointerEntered(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
OnPointerExited(PointerRoutedEventArgs)
Called before the PointerExitedPressed event occurs.
Declaration
protected override void OnPointerExited(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
OnPointerMoved(PointerRoutedEventArgs)
Called before the PointerMoved event occurs.
Declaration
protected override void OnPointerMoved(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
OnPointerPressed(PointerRoutedEventArgs)
Called before the PointerPressed event occurs.
Declaration
protected override void OnPointerPressed(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
OnPointerReleased(PointerRoutedEventArgs)
Called before the PointerReleased event occurs.
Declaration
protected override void OnPointerReleased(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
OnPointerWheelChanged(PointerRoutedEventArgs)
Called before the PointerWheelChanged event occurs.
Declaration
protected override void OnPointerWheelChanged(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
OnTapped(TappedRoutedEventArgs)
Called before the Tapped event occurs.
Declaration
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
protected override void OnTemplateApplied()
Overrides
UnapplyTemplateCore()
Removes the current control template. Occurs when a template has already been applied and a new one is applied.
Declaration
protected override void UnapplyTemplateCore()
Overrides
UnloadCore()
Removes behavior subscriptions.
Declaration
protected override void UnloadCore()
Overrides
UpdateChartArea()
Prepares the plot area model so that it may be visualized.
Declaration
protected virtual void UpdateChartArea()