Class
DataVizComponent

Definition

Namespace:Telerik.Generated.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
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.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

DataVizComponent()

Declaration

cs-api-definition
protected DataVizComponent()

Properties

ChildContent

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

Height

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.

Declaration

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

Property Value

string

Width

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.

Declaration

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

Property Value

string

Methods

Dispose()

Declaration

cs-api-definition
public override void Dispose()

Overrides BaseComponent.Dispose()

OnAfterRender(bool)

Declaration

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

Parameters

firstRender

bool

Overrides ComponentBase.OnAfterRender(bool)

OnInitialized()

Declaration

cs-api-definition
protected override void OnInitialized()

Overrides ComponentBase.OnInitialized()

OnParametersSet()

Declaration

cs-api-definition
protected override void OnParametersSet()

Overrides ComponentBase.OnParametersSet()

Refresh()

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.

Declaration

cs-api-definition
public virtual void Refresh()