Class
ChartLegendTitleMargin

Controls the external spacing around legend titles in ChartLegendTitle. Use this component to add space between the title and surrounding legend elements like borders, legend items, or container edges. Proper margins ensure titles don't overlap with other legend components and maintain clean, organized legend layouts with adequate breathing room.

Definition

Constructors

ChartLegendTitleMargin()

Declaration

cs-api-definition
public ChartLegendTitleMargin()

Properties

Bottom

Sets the bottom margin space below the legend title in pixels. Use this to add spacing between the title and legend items or other chart elements positioned below it. Common values range from 0-15 pixels to create proper visual separation between title and legend content without excessive 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 margin space to the left of the legend title in pixels. Creates spacing between the title and legend borders or container edges. Typical values are 0-10 pixels for standard layouts to ensure proper title positioning within the legend area.

Declaration

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

Property Value

double?

Right

Sets the right margin space to the right of the legend title in pixels. Use this to create separation between the title and legend borders or container edges. Standard values range from 0-10 pixels for optimal visual balance within the legend layout.

Declaration

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

Property Value

double?

Top

Sets the top margin space above the legend title in pixels. Creates spacing between the title and legend borders or other chart elements positioned above it. Common values are 0-15 pixels for proper visual hierarchy and separation within the legend structure.

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>