New to Telerik UI for BlazorStart a free 30-day trial

Telerik UI StockChartCategoryAxisLabels. Children: StockChartCategoryAxisLabelsBorder, StockChartCategoryAxisLabelsRotation.

Definition

Constructors

C#
public StockChartCategoryAxisLabels()

Properties

The background color of the labels. Any valid CSS color string will work here, including hex and rgb.

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

The text color of the labels. Any valid CSS color string will work here, including hex and rgb.

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

The font style of the labels.

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

The format of the labels.

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

Specifies the position of the labels.

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

Number of labels to skip. Skips rendering the first n labels.

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

Label rendering step. Every n-th label is rendered where n is the step

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

The template which renders the labels.The fields which can be used in the template are: value - the category value or dataItem - the data item, in case a field has been specified.

C#
[Parameter]
[Obsolete("\r\n            The syntax with template literals, e.g. '#= dataItem.Value #' is now deprecated and will be removed in the future.\r\n            You need to migrate to using the name of a JavaScript function that returns the value, e.g. Template='getTemplateValue'\r\n            See https://www.telerik.com/blazor-ui/documentation/components/chart/labels-template-and-format#templates\r\n            and https://www.telerik.com/blazor-ui/documentation/troubleshooting/csp#legacy-settings.\r\n        ")]
public string Template { get; set; }

The visibility of the labels.

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>