Class
ChartSeriesLabelsTo

Configures the display and styling of "to" value labels in range chart series such as range area, range bar, and range column charts. Controls the appearance of labels that display the ending/maximum values in data ranges, providing essential context for range-based data visualization and completing the range information display. Children: ChartSeriesLabelsToBorder, ChartSeriesLabelsToMargin, ChartSeriesLabelsToPadding.

Definition

Constructors

ChartSeriesLabelsTo()

Declaration

cs-api-definition
public ChartSeriesLabelsTo()

Properties

Background

Sets the background color for "to" value labels in range series using any valid CSS color value. Accepts hex codes (#FFF3E0), RGB values (rgb(255, 243, 224)), named colors (lightyellow, white), or HSL values. Use contrasting backgrounds to distinguish from/to labels and ensure readability in range visualizations.

Declaration

cs-api-definition
[Parameter]
public string Background { get; set; }

Property Value

string

ChildContent

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

Color

Sets the text color for "to" value labels in range series using any valid CSS color value. Accepts hex codes (#FF5722), RGB values (rgb(255, 87, 34)), named colors (orange, black), or HSL values. Choose colors that provide clear distinction between from/to labels and maintain readability.

Declaration

cs-api-definition
[Parameter]
public string Color { get; set; }

Property Value

string

Font

Defines the font styling for "to" value labels using CSS font notation. Specify font size, family, and style like "12px Arial", "14px 'Segoe UI'", or "bold 16px sans-serif". Consistent font styling ensures clear range value identification and visual hierarchy in range series.

Declaration

cs-api-definition
[Parameter]
public string Font { get; set; }

Property Value

string

Format

Specifies the display format for "to" value labels using Kendo format patterns. Use {0} for the to value, {0:N2} for two decimal places, {0:C} for currency formatting, or {0:P} for percentages. Proper formatting enhances data comprehension in range series visualizations.

Declaration

cs-api-definition
[Parameter]
public string Format { get; set; }

Property Value

string

Position

Determines the positioning strategy for "to" value labels relative to range data points using ChartSeriesLabelsPosition values. Choose appropriate positioning to avoid overlap with "from" labels and maintain clear range visualization in chart layouts.

Declaration

cs-api-definition
[Parameter]
public ChartSeriesLabelsPosition? Position { get; set; }

Property Value

ChartSeriesLabelsPosition?

Template

Defines a custom template for rendering "to" value labels with access to range data context. Use template syntax like "#= value.to #" for to values, "#= category #" for categories, or complex HTML with conditional logic for rich label presentations in range series.

Declaration

cs-api-definition
[Parameter]
public string Template { get; set; }

Property Value

string

Visible

Controls the visibility of "to" value labels in range series. Set to true to display to values, false to hide them, or leave null for default behavior. Visible to labels help users understand range ending points but may clutter dense visualizations.

Declaration

cs-api-definition
[Parameter]
public bool? Visible { get; set; }

Property Value

bool?

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

OnAfterRender(bool)

Declaration

cs-api-definition
protected override void OnAfterRender(bool firstRender)

Parameters

firstRender

bool

Overrides ComponentBase.OnAfterRender(bool)

OnInitialized()

Declaration

cs-api-definition
protected override void OnInitialized()

Overrides DataVizChildComponent.OnInitialized()

OnParametersSet()

Declaration

cs-api-definition
protected override void OnParametersSet()

Overrides ComponentBase.OnParametersSet()

Serialize()

Declaration

cs-api-definition
public Dictionary<string, object> Serialize()

Returns

Dictionary<string, object>