ClassChartValueAxisMajorTicks
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:
public class ChartValueAxisMajorTicks : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartValueAxisMajorTicks
Implements:
Inherited Members
Constructors
ChartValueAxisMajorTicks()
Declaration
public ChartValueAxisMajorTicks()
Properties
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
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.
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.
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.
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.
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.
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