ClassChartCategoryAxisPlotBandLabel
Configures the descriptive text label displayed within a plot band in ChartCategoryAxisPlotBand. Use this component to add explanatory text that describes what the highlighted plot band region represents, such as "Target Range", "Holiday Period", "High Season", or specific values. Labels can be positioned, styled, and rotated to provide clear context about the significance of the plot band without cluttering the chart visualization. Children: ChartCategoryAxisPlotBandLabelBorder, ChartCategoryAxisPlotBandLabelMargin, ChartCategoryAxisPlotBandLabelPadding.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartCategoryAxisPlotBandLabel : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartCategoryAxisPlotBandLabel
Implements:
Inherited Members
Constructors
ChartCategoryAxisPlotBandLabel()
Declaration
public ChartCategoryAxisPlotBandLabel()
Properties
Align
Controls the horizontal alignment of the plot band label using ChartAxisPlotBandsLabelAlign values. Choose Left to position the label at the beginning of the plot band, Right to position it at the end, or Center to position it in the middle. This determines where the label appears within the highlighted plot band region.
Declaration
[Parameter]
public ChartAxisPlotBandsLabelAlign? Align { get; set; }
Property Value
Background
Sets the background color behind the plot band label text. Accepts any valid CSS color including hex codes (#FFFFFF), RGB values (rgb(255,255,255)), named colors (white), or HSL values. Use background colors to improve label readability when the label overlaps with chart data or complex plot band colors.
Declaration
[Parameter]
public string Background { get; set; }
Property Value
ChildContent
The content of the ChartCategoryAxisPlotBandLabel component. Children: ChartCategoryAxisPlotBandLabelBorder, ChartCategoryAxisPlotBandLabelMargin, ChartCategoryAxisPlotBandLabelPadding.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Color
Sets the text color of the plot band label. Accepts any valid CSS color including hex codes (#333333), RGB values (rgb(51,51,51)), named colors (darkgray), or HSL values. Choose colors that provide good contrast with the Background and underlying plot band for optimal readability.
Font
Defines the font styling for the plot band label text using CSS font notation. Specify properties like size, weight, and family in a single string, for example: "bold 14px Arial", "italic 12px 'Times New Roman'", or "normal 16px sans-serif". This controls the typography and visual emphasis of the label text.
Position
Controls the vertical positioning of the plot band label using ChartAxisPlotBandsLabelPosition values. Choose Top to position the label above the plot band, Bottom to position it below, or Center to position it in the middle of the plot band height. This determines the label's vertical placement relative to the highlighted region.
Declaration
[Parameter]
public ChartAxisPlotBandsLabelPosition? Position { get; set; }
Property Value
Rotation
Sets the rotation angle for the plot band label in degrees. Use positive values for clockwise rotation, negative values for counter-clockwise rotation, or 0 (default) for no rotation. Common angles include 45, 90, or -90 degrees. Rotation is useful for fitting long labels in tight spaces or creating visual effects.
Declaration
[Parameter]
public double? Rotation { get; set; }
Property Value
Text
Specifies the text content displayed in the plot band label. Use descriptive text to explain what the plot band represents, such as "Target Range", "Weekend Period", "High Season", or specific values. Clear, concise labels help users understand the significance of the highlighted region.
Visible
Controls whether the plot band label is displayed. Set to true (default) to show the label with its descriptive text, or false to hide it while keeping the plot band visible. Hidden labels can be useful when you want to highlight regions without adding text clutter to the chart.
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