Class
ChartXAxisTitleMargin

Configures the external spacing around the X-axis title. Provides precise control over title positioning by defining the space between the title and surrounding chart elements like axis labels, chart area, and plot area. Use this component to ensure proper title placement, prevent overlapping with other chart elements, and create professional spacing that enhances chart readability.

Definition

Constructors

ChartXAxisTitleMargin()

Declaration

cs-api-definition
public ChartXAxisTitleMargin()

Properties

Bottom

Sets the bottom margin of the X-axis title in pixels. Defines the space between the bottom edge of the title and chart elements positioned below it, such as the chart border or legend. Use this property to prevent title overlap with bottom chart elements and ensure adequate spacing for professional presentation. Increase for charts with complex bottom layouts or when additional breathing room is needed.

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 of the X-axis title in pixels. Defines the space between the left edge of the title and adjacent chart elements such as the Y-axis labels or chart border. Use this property to ensure proper spacing from left-side chart elements and maintain balanced title positioning. Particularly important when the title is positioned near the chart's left edge or when Y-axis labels are present.

Declaration

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

Property Value

double?

Right

Sets the right margin of the X-axis title in pixels. Defines the space between the right edge of the title and adjacent chart elements such as the chart legend or right border. Use this property to prevent overlap with right-side chart elements and ensure professional title positioning. Essential for maintaining clean spacing when legends or other elements are positioned to the right of the chart.

Declaration

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

Property Value

double?

Top

Sets the top margin of the X-axis title in pixels. Defines the space between the top edge of the title and chart elements positioned above it, such as X-axis labels or the plot area. Use this property to ensure adequate separation from axis labels and prevent title overlap with chart data or grid lines. Critical for maintaining clear visual hierarchy between the title and axis labeling elements.

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>