ClassChartCategoryAxisMajorTicks
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:
public class ChartCategoryAxisMajorTicks : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartCategoryAxisMajorTicks
Implements:
Inherited Members
Constructors
ChartCategoryAxisMajorTicks()
Declaration
public ChartCategoryAxisMajorTicks()
Properties
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
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.
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.
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.
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.
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.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
OnAfterRender(bool)
Declaration
protected override void OnAfterRender(bool firstRender)
Parameters
firstRender
Overrides
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
OnParametersSet()
Declaration
protected override void OnParametersSet()
Overrides
Serialize()
Declaration
public Dictionary<string, object> Serialize()
Returns