Class
ChartTitlePadding

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

Definition

Constructors

ChartTitlePadding()

Declaration

cs-api-definition
public ChartTitlePadding()

Properties

Bottom

Sets the bottom padding inside the chart title area in pixels. Controls the space between the title text and the bottom edge of its container, particularly useful when the title has a background or border. Use this to prevent text from appearing too close to the title's bottom boundary and improve text readability. Example: Set to 8 when the title 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 title area in pixels. Controls the space between the title text and the left edge of its container, ensuring proper text positioning within the title area. Use this to adjust text placement when working with title backgrounds, borders, or specific alignment requirements. Example: Set to 12 to move title text away from the left edge when using background colors or custom styling.

Declaration

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

Property Value

double?

Right

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

Declaration

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

Property Value

double?

Top

Sets the top padding inside the chart title area in pixels. Controls the space between the title text and the top edge of its container, improving text positioning and visual appeal. Use this to create proper spacing above the title text, especially when the title has background styling or borders. Example: Set to 6 to provide breathing room above the text when the title has a colored background or decorative 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>