Class
TelerikChart

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class TelerikChart : ChartBase<ChartSeries>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentDataVizComponentChartBase<ChartSeries>TelerikChart

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members ChartBase<ChartSeries>.OnParametersSet()ChartBase<ChartSeries>.OnAfterRender(bool)ChartBase<ChartSeries>.Dispose()ChartBase<ChartSeries>.IdChartBase<ChartSeries>.OnSeriesClickChartBase<ChartSeries>.OnLegendItemClickChartBase<ChartSeries>.OnAxisLabelClickBaseComponent.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.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.OnParametersSetAsync()ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)

Constructors

TelerikChart()

Declaration

cs-api-definition
public TelerikChart()

Properties

OnDrilldown

Fires when users click on chart elements to navigate deeper into hierarchical data. Enable drilling down from high-level data overview into detailed subsets by clicking chart items. Works with series that have a DrilldownField configured to define drill targets. Use with TelerikChartBreadcrumb component to provide navigation between drill levels.

Declaration

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

Property Value

EventCallback<ChartDrilldownEventArgs>

RenderAs

Specifies the rendering technology used for chart visualization to optimize performance and compatibility across different environments. Choose between SVG rendering for crisp vector graphics and high-quality output, or Canvas rendering for better performance with large datasets. SVG rendering provides superior scalability and print quality, while Canvas rendering offers enhanced performance for charts with many data points. See RenderingMode for available rendering options and their optimal use cases based on your chart requirements and target platforms.

Declaration

cs-api-definition
[Parameter]
public RenderingMode? RenderAs { get; set; }

Property Value

RenderingMode?

Transitions

Controls whether the chart displays smooth animations when rendering series data for enhanced visual appeal and user experience. When set to true (default), the chart plays entrance animations that help users follow data progression and changes over time. Set to false to disable animations for immediate data display, which can be beneficial for performance-critical scenarios or accessibility requirements. Animations improve the visual storytelling aspect of charts and make data transitions more engaging for users analyzing trends and patterns.

Declaration

cs-api-definition
[Parameter]
public bool? Transitions { get; set; }

Property Value

bool?

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

OnInitialized()

Declaration

cs-api-definition
protected override void OnInitialized()

Overrides ChartBase<ChartSeries>.OnInitialized()

ResetDrilldownLevel(int)

Navigates back to previous drill level in hierarchical chart data. Set level to 0 to return to the top-level view, or specify any intermediate level. Commonly triggered by breadcrumb navigation or custom back buttons. Works in conjunction with the OnDrilldown event and drill-enabled series.

Declaration

cs-api-definition
public void ResetDrilldownLevel(int level)

Parameters

level

int

The drill level to reset to (0 = top level, 1 = first drill level, etc.)