ClassChartYAxisMinorGridLines
Configures the minor grid lines that appear between major grid lines on the Y-axis. Provides detailed control over secondary grid line appearance to enhance chart precision and readability without overwhelming the visualization. Use this component to create additional horizontal reference lines that help users identify intermediate value positions and improve data alignment.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartYAxisMinorGridLines : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartYAxisMinorGridLines
Implements:
Inherited Members
Constructors
ChartYAxisMinorGridLines()
Declaration
public ChartYAxisMinorGridLines()
Properties
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Color
Specifies the color of minor grid lines that appear between major grid lines on the Y-axis. Accepts any valid CSS color value including hex codes (#F0F0F0), RGB values (rgb(240,240,240)), or color names (whitesmoke). Use lighter colors than major grid lines to create visual hierarchy and avoid overwhelming the chart. Subtle colors help provide additional value reference without competing with data visualization or major grid structure.
DashType
Defines the line pattern for minor grid lines using predefined dash styles. Available options include solid lines for consistency with major grids, dotted lines for subtle value subdivision markers, and various dash patterns for specialized chart presentations. Choose styles that create clear hierarchy - typically use more subtle patterns than major grid lines for visual balance. See DashType for all available line pattern options.
Declaration
[Parameter]
public DashType? DashType { get; set; }
Property Value
Skip
Specifies how many minor grid lines to skip at the beginning of the axis. Use this property to fine-tune minor grid alignment with value patterns or create custom subdivision layouts. For example, setting Skip to 1 will start minor grid lines from the second subdivision position. Useful for aligning minor grids with specific value intervals or maintaining consistency across multiple chart axes.
Step
Defines the interval between minor grid lines in axis units. For numeric axes, specifies subdivisions between major values (e.g., 2.5 creates lines between 5-unit majors). For date axes, defines the time interval for minor subdivisions (e.g., daily lines between weekly majors). Use this property to control minor grid density and provide appropriate level of detail for your value precision needs.
Visible
Controls whether minor grid lines are displayed between major grid lines on the Y-axis. When set to true, additional horizontal grid lines appear to provide finer value reference points for precise data reading. Set to false (default for many chart types) to maintain clean appearance while preserving major grid structure. Enable minor grid lines for charts requiring high precision measurements or when working with detailed value analysis.
Width
Sets the thickness of minor grid lines in pixels. Use thinner lines than major grid lines (typically 0.5-1 pixel) to create appropriate visual hierarchy. Subtle line thickness ensures minor grids provide value reference without overwhelming the chart or competing with data series. Consider the overall chart design and major grid line thickness when setting minor grid width for optimal balance.
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