Class
ChartCategoryAxisTitleMargin

Controls the external spacing around category axis titles in ChartCategoryAxisTitle. Use this component to add space between the title and surrounding chart elements like plot areas, axes, legends, or chart borders. Proper margins ensure titles don't overlap with other chart elements and create clean, professional layouts with adequate breathing room for optimal readability.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class ChartCategoryAxisTitleMargin : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseDataVizChildComponentChartCategoryAxisTitleMargin

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members ComponentBase.OnInitializedAsync()ComponentBase.OnParametersSetAsync()ComponentBase.StateHasChanged()ComponentBase.ShouldRender()ComponentBase.OnAfterRenderAsync(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)

Constructors

ChartCategoryAxisTitleMargin()

Declaration

cs-api-definition
public ChartCategoryAxisTitleMargin()

Properties

Bottom

Sets the bottom margin space below the category axis title in pixels. Use this to add spacing between the title and chart elements positioned below it, such as the plot area, axis labels, or other chart annotations. Common values range from 0-20 pixels depending on chart layout and title positioning requirements.

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 space to the left of the category axis title in pixels. Creates spacing between the title and chart elements like value axes, legends, or chart borders. Typical values are 0-15 pixels for standard layouts to ensure proper title positioning and readability.

Declaration

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

Property Value

double?

Right

Sets the right margin space to the right of the category axis title in pixels. Use this to create separation between the title and chart elements positioned to its right, such as legends, additional axes, or chart annotations. Standard values range from 0-15 pixels for optimal layout balance.

Declaration

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

Property Value

double?

Top

Sets the top margin space above the category axis title in pixels. Creates spacing between the title and chart elements positioned above it, such as the plot area, chart titles, or other annotations. Common values are 0-20 pixels for proper visual separation and professional appearance.

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>