New to Telerik UI for BlazorStart a free 30-day trial

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

C#
public ChartXAxisTitleMargin()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected override void OnAfterRender(bool firstRender)
Parameters:firstRenderbool

Overrides: ComponentBase.OnAfterRender(bool)

C#
protected override void OnInitialized()

Overrides: DataVizChildComponent.OnInitialized()

C#
protected override void OnParametersSet()

Overrides: ComponentBase.OnParametersSet()

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Properties

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.

C#
[Parameter]
public double? Bottom { get; set; }

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.

C#
[Parameter]
public double? Left { get; set; }

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.

C#
[Parameter]
public double? Right { get; set; }

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.

C#
[Parameter]
public double? Top { get; set; }