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

Configuration for the data labels shown on a chart series. Labels are hidden by default — set Visible to true to show them.

Schema: src/common/models/chart.schema.json#/$defs/ChartSeriesLabelsConfig

Definition

Namespace:Telerik.Blazor.Components.DatAInsightsComposer

Assembly:Telerik.Blazor.DatAInsightsComposer.dll

Syntax:

C#
public class ChartSeriesLabelsConfig

Inheritance: objectChartSeriesLabelsConfig

Constructors

C#
public ChartSeriesLabelsConfig()

Properties

The format string for the label value (e.g. "{0:N2}" for two decimal places, "{0:P0}" for percentage, "{0:C}" for currency).

C#
public string? Format { get; set; }

The position of the labels relative to the data point. Availability depends on chart type:

  • OutsideEnd — bar, column, pie, donut (default for pie/donut)
  • InsideEnd / InsideBase / Center — bar, column
  • Above / Below / Left / Right — line, scatter, bubble
C#
public ChartSeriesLabelsPosition? Position { get; set; }

Whether the labels are visible. null means not requested (renderer defaults to false).

C#
public bool? Visible { get; set; }