ClassChartValueAxisTitleMargin
Configures the margin spacing around the chart value axis title to control its distance from the axis and other chart elements. Provides precise control over the empty space surrounding the value axis title for optimal chart layout and professional presentation. Use this component to fine-tune title positioning and ensure proper spacing between the axis title and chart content.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartValueAxisTitleMargin : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartValueAxisTitleMargin
Implements:
Inherited Members
Constructors
ChartValueAxisTitleMargin()
Declaration
public ChartValueAxisTitleMargin()
Properties
Bottom
Sets the bottom margin of the value axis title in pixels. Controls the spacing between the title and elements positioned below it, affecting overall chart layout and title readability. Use this to create appropriate vertical separation between the axis title and chart content or other axis elements. Example: Set to 8 for compact layouts, or 15 for more generous spacing when the title needs clear separation from chart content.
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 value axis title in pixels. Controls the spacing between the title and elements to its left, such as the chart plot area or other chart components. Use this to adjust title positioning relative to the value axis and ensure proper alignment with chart layout elements. Example: Set to 10 to move the title away from the axis area, or 20 for more dramatic spacing in wide chart layouts.
Right
Sets the right margin of the value axis title in pixels. Controls the spacing between the title and elements to its right, ensuring proper visual separation and chart layout balance. Use this to prevent the title from appearing too close to the chart edge or overlapping with chart data visualization. Example: Set to 12 for standard spacing, or 25 when working with rotated titles that need additional clearance.
Top
Sets the top margin of the value axis title in pixels. Controls the spacing between the title and elements positioned above it, improving overall chart visual hierarchy and title prominence. Use this to create proper spacing above the axis title and ensure it doesn't interfere with chart headers or other top-positioned elements. Example: Set to 6 for subtle top spacing, or 18 for clear separation from chart titles or overlapping content.
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