New to Telerik UI for .NET MAUI? Start a free 30-day trial

Represents a chart control that visualizes data series over one or more axes.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public abstract class RadChartBase : RadLayout

Inheritance: objectRadLayoutRadChartBase

Derived Classes: RadCartesianChartRadPieChart

Inherited Members RadLayout.CreateLayoutManager()

Constructors

Initializes a new instance of the RadChartBase class.

C#
public RadChartBase()

Fields

PaletteProperty

BindableProperty

Identifies the Palette bindable property.

C#
public static readonly BindableProperty PaletteProperty

PlotAreaPaddingProperty

BindableProperty

Identifies the PlotAreaPadding bindable property. Use the default value of new Thickness(-1) to let the engine compute per-side padding automatically based on axis label sizes.

C#
public static readonly BindableProperty PlotAreaPaddingProperty

StyleProperty

BindableProperty

Identifies the Style bindable property.

C#
public static readonly BindableProperty StyleProperty

Properties

Gets or sets the color palette for chart series. null = use the palette defined by the active theme.

C#
public ChartPalette Palette { get; set; }

Gets or sets the padding between the chart border and the plot area. The default value of new Thickness(-1) means the engine auto-computes each side based on axis label measurements. Set individual sides to non-negative values to fix them.

C#
public Thickness PlotAreaPadding { get; set; }

Gets the collection of data series displayed by the chart.

C#
public IList<ChartSeries> Series { get; }

Style

Style

Gets or sets the style applied to this chart.

C#
public Style Style { get; set; }

Methods

Updates PropertyChanged subscriptions for the items reported by a collection change notification.

C#
protected void HandlePropertyChangedSubscriptions(NotifyCollectionChangedEventArgs e, PropertyChangedEventHandler handler)
Parameters:eNotifyCollectionChangedEventArgs

The collection change notification that supplies added and removed items.

handlerPropertyChangedEventHandler

The handler to subscribe for added items and unsubscribe for removed items.

The method subscribes handler to each item in NewItems that implements INotifyPropertyChanged, and removes the subscription from each compatible item in OldItems. Items that do not implement INotifyPropertyChanged are ignored. A reset notification contains neither item list, so the owning collection handler must rebuild subscriptions separately when it receives Reset.

Requests a redraw of the chart.

C#
public void Invalidate()

Updates chart element binding contexts when the chart binding context changes.

C#
protected override void OnBindingContextChanged()