ClassDataVizComponent
Definition
Namespace:Telerik.Generated.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public abstract class DataVizComponent : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentDataVizComponent
Derived Classes:
Implements:
Inherited Members
Constructors
DataVizComponent()
Declaration
protected DataVizComponent()
Properties
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
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.
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.
Methods
Dispose()
Declaration
public override void Dispose()
Overrides
OnAfterRender(bool)
Declaration
protected override void OnAfterRender(bool firstRender)
Parameters
firstRender
Overrides
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
OnParametersSet()
Declaration
protected override void OnParametersSet()
Overrides
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
public virtual void Refresh()