Class
ChartValueAxisMajorTicks

Configures the major tick marks displayed along the chart value axis to indicate primary scale intervals. Provides comprehensive control over tick appearance including color, size, spacing, and visibility to enhance axis readability and professional presentation. Use this component to create visual markers that help users identify specific values and understand the scale increments on the value axis.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class ChartValueAxisMajorTicks : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseDataVizChildComponentChartValueAxisMajorTicks

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members ComponentBase.OnInitializedAsync()ComponentBase.OnParametersSetAsync()ComponentBase.StateHasChanged()ComponentBase.ShouldRender()ComponentBase.OnAfterRenderAsync(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)

Constructors

ChartValueAxisMajorTicks()

Declaration

cs-api-definition
public ChartValueAxisMajorTicks()

Properties

ChildContent

Declaration

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

Property Value

RenderFragment

Color

Sets the color of the major tick marks on the value axis. Accepts any valid CSS color value including hex codes (#666666), RGB values (rgb(102,102,102)), or color names (gray). Use this to ensure tick marks have appropriate contrast and visibility against your chart's background and axis styling. Example: Set to "#333333" for dark professional ticks, or "#cccccc" for subtle light ticks that don't dominate the chart design.

Declaration

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

Property Value

string

Size

Sets the length of the major tick marks in pixels. Controls how far the tick marks extend from the value axis line, affecting their visibility and prominence in the chart design. Use this to create subtle tick marks with short lengths or prominent markers with longer lengths based on your chart's visual hierarchy. Example: Set to 5 for standard tick marks, 8 for more prominent ticks, or 3 for subtle minimal tick indicators.

Declaration

cs-api-definition
[Parameter]
public double? Size { get; set; }

Property Value

double?

Skip

Sets the number of major tick marks to skip from the beginning of the value axis. Controls which tick marks are displayed by skipping a specified number from the start, useful for custom tick patterns. Use this to fine-tune tick mark positioning and create specific visual patterns that enhance chart axis readability. Example: Set to 1 to skip the first tick mark, or 2 to start tick marks from the third major value interval.

Declaration

cs-api-definition
[Parameter]
public double? Skip { get; set; }

Property Value

double?

Step

Sets the interval step for displaying major tick marks on the value axis. Controls how frequently tick marks appear by specifying the interval between them, allowing for custom tick density. Use this to control tick mark frequency independent of the major unit setting, creating optimal value reference points for your data range. Example: Set to 2 to show ticks every other major unit, or 5 for sparser tick marks in dense value ranges.

Declaration

cs-api-definition
[Parameter]
public double? Step { get; set; }

Property Value

double?

Visible

Controls whether the major tick marks are displayed along the value axis. When set to true, tick marks appear at major value intervals. When false, no major tick marks are shown. Use this to show or hide tick marks based on chart design preferences and the need for precise value reference points. Example: Set to true for charts requiring precise value reading, or false for clean minimal designs where ticks might be distracting.

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>