Class
ChartSubtitlePadding

Configures the internal padding within the chart subtitle area to control spacing between the subtitle text and its boundaries. Provides precise control over the space inside the subtitle container for optimal text positioning and visual appeal. Use this component to adjust subtitle text spacing when working with background colors or borders around the subtitle.

Definition

Constructors

ChartSubtitlePadding()

Declaration

cs-api-definition
public ChartSubtitlePadding()

Properties

Bottom

Sets the bottom padding inside the chart subtitle area in pixels. Controls the space between the subtitle text and the bottom edge of its container, particularly useful when the subtitle has a background or border. Use this to prevent text from appearing too close to the subtitle's bottom boundary and improve readability. Example: Set to 8 when the subtitle has a background color or border to create breathing room around the text.

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 padding inside the chart subtitle area in pixels. Controls the space between the subtitle text and the left edge of its container, ensuring proper text positioning. Use this to adjust text placement within the subtitle area, especially when working with subtitle backgrounds or custom styling. Example: Set to 12 to move subtitle text away from the left edge when using background colors or borders.

Declaration

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

Property Value

double?

Right

Sets the right padding inside the chart subtitle area in pixels. Controls the space between the subtitle text and the right edge of its container, preventing text from appearing cramped. Use this to ensure subtitle text has adequate space on the right side, particularly with right-aligned text or backgrounds. Example: Set to 15 when the subtitle text needs more space from the right boundary for visual balance.

Declaration

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

Property Value

double?

Top

Sets the top padding inside the chart subtitle area in pixels. Controls the space between the subtitle text and the top edge of its container, improving text positioning and visual appeal. Use this to create proper spacing above the subtitle text, especially when the subtitle has background styling. Example: Set to 6 to provide breathing room above the text when the subtitle has a colored background or border.

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>