New to Telerik UI for Blazor? Start a free 30-day trial

The default settings for the series labels.

Definition

Constructors

C#
public ChartSeriesDefaultsLabels()

Properties

The background color of the labels. Accepts a valid CSS color string, including hex and rgb.

C#
[Parameter]
public string Background { get; set; }
C#
[Parameter]
public RenderFragment ChildContent { get; set; }

The text color of the labels. Accepts a valid CSS color string, including hex and rgb.

C#
[Parameter]
public string Color { get; set; }

The font style of the labels. Accepts a valid CSS color string, for example "20px 'Courier New'".

C#
[Parameter]
public string Font { get; set; }

Specifies the position of the labels.

C#
[Parameter]
public ChartSeriesLabelsPosition? Position { get; set; }

Specifies the priority of the label when overlap is set to { mode: "hide" }. Labels with an explicit priority take precedence and labels with higher priority are kept visible. When omitted, labels are ranked by the absolute point value.

C#
[Parameter]
public double? Priority { get; set; }

If set to true the chart will display the series labels. By default chart series labels are not displayed.

C#
[Parameter]
public bool? Visible { get; set; }

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected override void OnAfterRender(bool firstRender)
Parameters:firstRenderbool

Overrides: ComponentBase.OnAfterRender(bool)

C#
protected override void OnInitialized()

Overrides: DataVizChildComponent.OnInitialized()

C#
protected override void OnParametersSet()

Overrides: ComponentBase.OnParametersSet()

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>