ClassChartPlotAreaMargin
Controls the external spacing around the chart plot area to create proper separation from other chart elements like axes, titles, and legends. Manages the space between the plot area border and surrounding chart components, ensuring optimal layout and preventing visual overlap in complex chart designs.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartPlotAreaMargin : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartPlotAreaMargin
Implements:
Inherited Members
Constructors
ChartPlotAreaMargin()
Declaration
public ChartPlotAreaMargin()
Properties
Bottom
Sets the bottom external margin space below the chart plot area in pixels. Creates separation between the plot area and elements below it like X-axis labels, titles, or other chart components. Use values like 5-20 pixels to ensure proper visual spacing and prevent overlapping with bottom chart elements.
Declaration
[Parameter]
public double? Bottom { get; set; }
Property Value
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Left
Sets the left external margin space to the left of the chart plot area in pixels. Provides separation between the plot area and elements on the left like Y-axis labels, titles, or legend components. Common values range from 5-30 pixels depending on the complexity of left-side chart elements.
Right
Sets the right external margin space to the right of the chart plot area in pixels. Creates separation between the plot area and elements on the right such as secondary Y-axis labels, legends, or other chart components. Use appropriate spacing to maintain balanced chart layout and readability.
Top
Sets the top external margin space above the chart plot area in pixels. Provides separation between the plot area and elements above it like chart titles, legend components, or other top-positioned chart elements. Standard values range from 5-25 pixels for optimal visual hierarchy.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
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
Serialize()
Declaration
public Dictionary<string, object> Serialize()
Returns