ClassChartXAxisTitleMargin
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
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartXAxisTitleMargin : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartXAxisTitleMargin
Implements:
Inherited Members
Constructors
ChartXAxisTitleMargin()
Declaration
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
[Parameter]
public double? Bottom { get; set; }
Property Value
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
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.
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.
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.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
OnAfterRender(bool)
Declaration
protected override void OnAfterRender(bool firstRender)
Parameters
firstRender
Overrides
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
OnParametersSet()
Declaration
protected override void OnParametersSet()
Overrides
Serialize()
Declaration
public Dictionary<string, object> Serialize()
Returns