ClassChartSubtitleMargin
Configures the margin spacing around the chart subtitle to control its distance from other chart elements. Provides precise control over the empty space around the subtitle for optimal chart layout and visual balance. Use this component to fine-tune subtitle positioning and ensure proper spacing in your chart design.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartSubtitleMargin : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartSubtitleMargin
Implements:
Inherited Members
Constructors
ChartSubtitleMargin()
Declaration
public ChartSubtitleMargin()
Properties
Bottom
Sets the bottom margin of the chart subtitle in pixels. Controls the spacing between the subtitle and elements positioned below it, such as the chart plot area or legend. Use this to create visual separation and improve chart readability. Default is automatic spacing. Example: Set to 20 for extra space below the subtitle when it appears above other 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 chart subtitle in pixels. Controls the spacing between the subtitle and elements positioned to its left, affecting subtitle alignment and layout. Use this to adjust subtitle positioning relative to the chart's left edge or other components. Example: Set to 15 when the subtitle needs to align with specific chart elements or avoid overlapping content.
Right
Sets the right margin of the chart subtitle in pixels. Controls the spacing between the subtitle and elements positioned to its right, ensuring proper visual separation. Use this to prevent subtitle text from appearing too close to the chart's right edge or other components. Example: Set to 25 when working with right-aligned subtitles or when additional space is needed for visual balance.
Top
Sets the top margin of the chart subtitle in pixels. Controls the spacing between the subtitle and elements positioned above it, such as the main chart title. Use this to create appropriate vertical separation between title elements and improve visual hierarchy. Example: Set to 10 to provide clear separation between the main title and subtitle, or 30 for more dramatic spacing.
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