Class
ChartBase<TSeries>

Base chart component.

Definition

Namespace:Telerik.Generated.Blazor.Components

Assembly:Telerik.Blazor.dll

Type Parameters:

TSeries

Syntax:

cs-api-definition
public abstract class ChartBase<TSeries> : DataVizComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable where TSeries : ChartSeriesBase

Inheritance: objectComponentBaseBaseComponentDataVizComponentChartBase<TSeries>

Derived Classes: TelerikChartTelerikStockChart

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members DataVizComponent.Refresh()DataVizComponent.ChildContentDataVizComponent.WidthDataVizComponent.HeightBaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.OnAfterRenderAsync(bool)BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeVoidAsyncWithoutAwait(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.BuildRenderTree(RenderTreeBuilder)ComponentBase.OnParametersSetAsync()ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)

Constructors

ChartBase()

Declaration

cs-api-definition
protected ChartBase()

Properties

Id

Sets a unique identifier for the chart component. Use this to associate the chart with related components like TelerikChartBreadcrumb. Essential for drill-down functionality and connecting multiple chart-related components. Must be unique across all chart instances on the same page.

Declaration

cs-api-definition
[Parameter]
public string Id { get; set; }

Property Value

string

OnAxisLabelClick

Fires when users click on axis labels (category or value axis labels). Enable interactive axis behavior for filtering, drilling, or navigation scenarios. Provides access to the clicked label text, axis information, and data context. Commonly used to filter data based on category or implement axis-based navigation.

Declaration

cs-api-definition
[Parameter]
public EventCallback<ChartAxisLabelClickEventArgs> OnAxisLabelClick { get; set; }

Property Value

EventCallback<ChartAxisLabelClickEventArgs>

OnDragEnd

Fires when a pan (drag) gesture completes and the chart has settled on new axis ranges. Use to read the updated AxisRanges and reload data for the new visible window or update related components. Only axes with a Name set appear in the dictionary. Requires ChartPannable to be enabled on the chart.

Declaration

cs-api-definition
[Parameter]
public EventCallback<ChartDragEndEventArgs> OnDragEnd { get; set; }

Property Value

EventCallback<ChartDragEndEventArgs>

OnDragStart

Fires at the start of a pan (drag) gesture. Use to capture the axis ranges before the user moves the visible window. The event args expose an AxisRanges dictionary keyed by axis name — only axes with a Name set are included. Panning is only active when the chart is already zoomed in. Requires ChartPannable to be enabled on the chart.

Declaration

cs-api-definition
[Parameter]
public EventCallback<ChartDragStartEventArgs> OnDragStart { get; set; }

Property Value

EventCallback<ChartDragStartEventArgs>

OnLegendItemClick

Fires when users click on legend items to toggle series visibility or perform custom actions. Enable legend-based chart interaction for showing/hiding data series. Provides access to the legend item details and associated series information. Use this to implement custom legend behavior beyond the default visibility toggle.

Declaration

cs-api-definition
[Parameter]
public EventCallback<ChartLegendItemClickEventArgs> OnLegendItemClick { get; set; }

Property Value

EventCallback<ChartLegendItemClickEventArgs>

OnSeriesClick

Fires when users click on any data point, column, line, or chart element in the series. Enable interactive behavior for chart data exploration and selection. Provides access to the clicked data item, series information, and chart coordinates. Commonly used for navigation, showing details, or updating related components.

Declaration

cs-api-definition
[Parameter]
public EventCallback<ChartSeriesClickEventArgs> OnSeriesClick { get; set; }

Property Value

EventCallback<ChartSeriesClickEventArgs>

OnZoomEnd

Fires when a zoom gesture completes and the chart has settled on new axis ranges. Use to read the updated AxisRanges and synchronize external state, reload data for the visible window, or persist the zoom level. Only axes with a Name set appear in the dictionary. Requires ChartZoomable to be enabled on the chart.

Declaration

cs-api-definition
[Parameter]
public EventCallback<ChartZoomEndEventArgs> OnZoomEnd { get; set; }

Property Value

EventCallback<ChartZoomEndEventArgs>

OnZoomStart

Fires at the start of a zoom gesture (mousewheel, pinch, or selection box). Use to capture the axis ranges before any zoom is applied. The event args expose an AxisRanges dictionary keyed by axis name — only axes with a Name set are included. Requires ChartZoomable to be enabled on the chart.

Declaration

cs-api-definition
[Parameter]
public EventCallback<ChartZoomStartEventArgs> OnZoomStart { get; set; }

Property Value

EventCallback<ChartZoomStartEventArgs>

Methods

Dispose()

Declaration

cs-api-definition
public override void Dispose()

Overrides DataVizComponent.Dispose()

OnAfterRender(bool)

Declaration

cs-api-definition
protected override void OnAfterRender(bool firstRender)

Parameters

firstRender

bool

Overrides DataVizComponent.OnAfterRender(bool)

OnInitialized()

Declaration

cs-api-definition
protected override void OnInitialized()

Overrides DataVizComponent.OnInitialized()

OnParametersSet()

Declaration

cs-api-definition
protected override void OnParametersSet()

Overrides DataVizComponent.OnParametersSet()