ChartSubtitlePadding
Configures the internal padding within the chart subtitle area to control spacing between the subtitle text and its boundaries. Provides precise control over the space inside the subtitle container for optimal text positioning and visual appeal. Use this component to adjust subtitle text spacing when working with background colors or borders around the subtitle.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartSubtitlePadding : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartSubtitlePadding
Implements:
Inherited Members
Constructors
public ChartSubtitlePadding()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
protected override void OnInitialized()
Overrides:
protected override void OnParametersSet()
Overrides:
Properties
Sets the bottom padding inside the chart subtitle area in pixels. Controls the space between the subtitle text and the bottom edge of its container, particularly useful when the subtitle has a background or border. Use this to prevent text from appearing too close to the subtitle's bottom boundary and improve readability. Example: Set to 8 when the subtitle has a background color or border to create breathing room around the text.
[Parameter]
public double? Bottom { get; set; }
Sets the left padding inside the chart subtitle area in pixels. Controls the space between the subtitle text and the left edge of its container, ensuring proper text positioning. Use this to adjust text placement within the subtitle area, especially when working with subtitle backgrounds or custom styling. Example: Set to 12 to move subtitle text away from the left edge when using background colors or borders.
[Parameter]
public double? Left { get; set; }
Sets the right padding inside the chart subtitle area in pixels. Controls the space between the subtitle text and the right edge of its container, preventing text from appearing cramped. Use this to ensure subtitle text has adequate space on the right side, particularly with right-aligned text or backgrounds. Example: Set to 15 when the subtitle text needs more space from the right boundary for visual balance.
[Parameter]
public double? Right { get; set; }
Sets the top padding inside the chart subtitle area in pixels. Controls the space between the subtitle text and the top edge of its container, improving text positioning and visual appeal. Use this to create proper spacing above the subtitle text, especially when the subtitle has background styling. Example: Set to 6 to provide breathing room above the text when the subtitle has a colored background or border.
[Parameter]
public double? Top { get; set; }