ClassChartCategoryAxisLabelsMargin
Controls the external spacing around category axis labels in ChartCategoryAxisLabels. Use this component to add space between labels and surrounding chart elements like other axes, legends, or chart borders. Margins create breathing room in your chart layout and prevent visual elements from appearing too close together. Adjust individual sides (top, right, bottom, left) to fine-tune label positioning and chart aesthetics.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartCategoryAxisLabelsMargin : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartCategoryAxisLabelsMargin
Implements:
Inherited Members
Constructors
ChartCategoryAxisLabelsMargin()
Declaration
public ChartCategoryAxisLabelsMargin()
Properties
Bottom
Sets the bottom margin space below category axis labels in pixels. Use this to add spacing between labels and chart elements positioned below them, such as other axes or chart annotations. Common values range from 0-20 pixels depending on your layout requirements.
Declaration
[Parameter]
public double? Bottom { get; set; }
Property Value
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Left
Sets the left margin space to the left of category axis labels in pixels. Useful for creating space between labels and chart elements like value axes, legends, or chart borders. Typical values are 0-15 pixels for standard layouts.
Right
Sets the right margin space to the right of category axis labels in pixels. Creates spacing between labels and chart elements positioned to their right, such as legends, additional axes, or chart borders. Standard values range from 0-15 pixels.
Top
Sets the top margin space above category axis labels in pixels. Use this to add spacing between labels and chart elements positioned above them, such as the plot area, titles, or other chart annotations. Common values are 0-20 pixels for proper visual separation.
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