Class
ChartSeriesLabelsMargin

Controls the external spacing around chart series data point labels to prevent overlap and ensure proper label positioning relative to other chart elements. Manages the space between labels and surrounding chart components for optimal readability and visual balance.

Definition

Constructors

ChartSeriesLabelsMargin()

Declaration

cs-api-definition
public ChartSeriesLabelsMargin()

Properties

Bottom

Sets the bottom external margin space below series data point labels in pixels. Creates separation between labels and elements below them, preventing overlap with chart axes, other labels, or chart borders. Use values like 3-10 pixels for optimal label spacing.

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 series data point labels in pixels. Provides separation between labels and adjacent chart elements, ensuring clear label positioning and preventing visual conflicts. Common values range from 3-15 pixels.

Declaration

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

Property Value

double?

Right

Sets the right external margin space to the right of series data point labels in pixels. Creates separation between labels and other chart elements, maintaining proper visual hierarchy and preventing overlap in dense data visualizations.

Declaration

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

Property Value

double?

Top

Sets the top external margin space above series data point labels in pixels. Provides separation between labels and elements above them, ensuring proper visual spacing and preventing overlap with chart titles, legends, or other labels.

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>