Class
ChartCategoryAxisMajorTicks

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

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

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

Inheritance: objectComponentBaseDataVizChildComponentChartCategoryAxisMajorTicks

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

ChartCategoryAxisMajorTicks()

Declaration

cs-api-definition
public ChartCategoryAxisMajorTicks()

Properties

ChildContent

Declaration

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

Property Value

RenderFragment

Color

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.

Declaration

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

Property Value

string

Size

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.

Declaration

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

Property Value

double?

Skip

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.

Declaration

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

Property Value

double?

Step

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.

Declaration

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

Property Value

double?

Visible

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.

Declaration

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

Property Value

bool?

Width

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.

Declaration

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

Property Value

double?

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>