Class
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

Constructors

ChartPlotAreaMargin()

Declaration

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

cs-api-definition
[Parameter]
public double? Bottom { get; set; }

Property Value

double?

ChildContent

Declaration

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

Property Value

RenderFragment

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.

Declaration

cs-api-definition
[Parameter]
public double? Left { get; set; }

Property Value

double?

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.

Declaration

cs-api-definition
[Parameter]
public double? Right { get; set; }

Property Value

double?

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.

Declaration

cs-api-definition
[Parameter]
public double? Top { get; set; }

Property Value

double?

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

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 DataVizChildComponent.OnInitialized()

OnParametersSet()

Declaration

cs-api-definition
protected override void OnParametersSet()

Overrides ComponentBase.OnParametersSet()

Serialize()

Declaration

cs-api-definition
public Dictionary<string, object> Serialize()

Returns

Dictionary<string, object>