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

Configures the major tick marks that appear along the category axis at primary interval points. Creates visual indicators that mark important category positions and enhance axis readability. Essential for professional chart presentation by providing clear measurement reference points. Controls tick length, color, thickness, and positioning for optimal visual hierarchy.

Definition

Constructors

C#
public ChartCategoryAxisMajorTicks()

Properties

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

Sets the color of major tick marks on the category axis. Accepts any valid CSS color including hex codes (#333333), RGB values (rgb(51,51,51)), named colors (darkgray), or HSL values. Major ticks provide primary reference points at axis divisions and are typically more prominent than minor ticks to establish clear visual hierarchy.

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

Controls the length of major tick marks in pixels. Major ticks are typically longer than minor ticks to create visual hierarchy. Common values range from 6-15 pixels, with larger values (10-15px) creating prominent reference marks and smaller values (6-8px) providing subtle guides while maintaining readability.

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

Sets how many major tick marks to skip from the beginning of the category axis. Use this to offset the major tick pattern, for example, Skip=1 starts major ticks from the second category instead of the first. Useful for aligning major ticks with specific data patterns or chart layout requirements.

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

Controls the interval between major tick marks on the category axis. Set to 1 to show a major tick at every category, 2 for every other category, etc. This helps control visual density while maintaining useful reference points for data reading, especially important in charts with many categories.

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

Controls whether major tick marks are displayed on the category axis. Set to true (default) to show major ticks for clear data reference points, or false to hide them for cleaner chart appearance. Major ticks help users align data points with their corresponding category values and improve chart readability.

C#
[Parameter]
public bool? Visible { get; set; }

Sets the thickness of major tick marks in pixels. Major ticks are typically thicker than minor ticks to establish visual hierarchy. Use values like 1-3 pixels for standard ticks, with thicker lines (2-3px) for more prominent visual guides. Combine with Color and Size for optimal appearance.

C#
[Parameter]
public double? Width { 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>