ChartPlotAreaMargin
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
public ChartPlotAreaMargin()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
protected override void OnInitialized()
Overrides:
protected override void OnParametersSet()
Overrides:
Properties
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.
[Parameter]
public double? Bottom { get; set; }
[Parameter]
public RenderFragment ChildContent { get; set; }
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.
[Parameter]
public double? Left { get; set; }
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.
[Parameter]
public double? Right { get; set; }
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.
[Parameter]
public double? Top { get; set; }