New to Telerik UI for BlazorStart a free 30-day trial

Definition

Namespace:Telerik.Generated.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

C#
public abstract class DataVizComponent : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentDataVizComponent

Derived Classes: TelerikBarcodeTelerikDiagramTelerikLinearGaugeTelerikMapTelerikQRCodeTelerikRadialGaugeTelerikSankeyTelerikSignatureArcGaugeBase<TGaugeCenterLabel>ChartBase<TSeries>...

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.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

C#
protected DataVizComponent()

Methods

C#
public override void Dispose()

Overrides: BaseComponent.Dispose()

C#
protected override void OnAfterRender(bool firstRender)
Parameters:firstRenderbool

Overrides: ComponentBase.OnAfterRender(bool)

C#
protected override void OnInitialized()

Overrides: ComponentBase.OnInitialized()

C#
protected override void OnParametersSet()

Overrides: ComponentBase.OnParametersSet()

Forces the chart to refresh and re-render with current data and settings. Call this method after programmatically changing chart configuration or data. Useful when updating chart properties that don't automatically trigger re-rendering. Ensures the visual representation matches the current component state.

C#
public virtual void Refresh()

Properties

C#
[Parameter]
public RenderFragment ChildContent { get; set; }

Sets the chart height using any valid CSS measurement. Examples: "400px", "50vh", "300px", "calc(100vh - 100px)". Viewport units like "50vh" create charts that scale with browser window height. Fixed pixel values like "400px" ensure consistent chart proportions. Must be specified for proper chart rendering and user interaction.

C#
[Parameter]
public string Height { get; set; }

Sets the chart width using any valid CSS measurement. Examples: "500px", "100%", "50vw", "calc(100% - 200px)". Use percentage values like "100%" for responsive designs that adapt to container size. Pixel values like "800px" provide fixed dimensions. When not set, the chart adapts to its container's width.

C#
[Parameter]
public string Width { get; set; }