Class
ChartSeriesLabelsFrom

Configures the display and styling of "from" value labels in range chart series such as range area, range bar, and range column charts. Controls the appearance of labels that display the starting/minimum values in data ranges, providing essential context for range-based data visualization. Children: ChartSeriesLabelsFromBorder, ChartSeriesLabelsFromMargin, ChartSeriesLabelsFromPadding.

Definition

Constructors

ChartSeriesLabelsFrom()

Declaration

cs-api-definition
public ChartSeriesLabelsFrom()

Properties

Background

Sets the background color for "from" value labels in range series using any valid CSS color value. Accepts hex codes (#E8F4FD), RGB values (rgb(232, 244, 253)), named colors (lightblue, 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 "from" value labels in range series using any valid CSS color value. Accepts hex codes (#2E7D32), RGB values (rgb(46, 125, 50)), named colors (green, 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 "from" 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.

Declaration

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

Property Value

string

Format

Specifies the display format for "from" value labels using Kendo format patterns. Use {0} for the from 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.

Declaration

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

Property Value

string

Position

Determines the positioning strategy for "from" value labels relative to range data points using ChartSeriesLabelsPosition values. Choose appropriate positioning to avoid overlap with "to" 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 "from" value labels with access to range data context. Use template syntax like "#= value.from #" for from 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 "from" value labels in range series. Set to true to display from values, false to hide them, or leave null for default behavior. Visible from labels help users understand range starting 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>