Class ChartAxisMinorTickLines
Represents the options to customize the minor tick lines of a chart axis in the Syncfusion Blazor chart.
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class ChartAxisMinorTickLines : ChartSubComponent, ISubcomponentTracker
Constructors
ChartAxisMinorTickLines()
Declaration
public ChartAxisMinorTickLines()
Properties
Color
Gets or sets the color of the minor tick line.
Declaration
public string Color { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the color of the minor tick line. The default minor tick line color is determined by the chart's theme. By default, the theme is set to Material with a minor tick line color of #d6d6d6. |
Remarks
Use valid hex or rgba CSS color strings for the color value.
Examples
// The following code demonstrates setting a custom style for the axis minor tick lines.
<SfChart>
<ChartPrimaryXAxis MinorTicksPerInterval="1">
<ChartAxisMinorTickLines Color="red" />
</ChartPrimaryXAxis>
<ChartPrimaryYAxis MinorTicksPerInterval="1">
<ChartAxisMinorTickLines Color="blue" />
</ChartPrimaryYAxis>
</SfChart>
Height
Gets or sets the height of the minor tick line in pixels.
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The double value representing the height of the minor tick line in pixels. The default value is 5. |
Remarks
The height specifies the length of the tick line extending from the axis line.
Examples
// The following code demonstrates setting a customize height for the axis minor tick lines.
<SfChart>
<ChartPrimaryXAxis MinorTicksPerInterval="1">
<ChartAxisMinorTickLines Height="10" />
</ChartPrimaryXAxis>
<ChartPrimaryYAxis MinorTicksPerInterval="1">
<ChartAxisMinorTickLines Height="10" />
</ChartPrimaryYAxis>
</SfChart>
Width
Gets or sets the width of the minor tick line in pixels.
Declaration
public double Width { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The double value representing the width of the minor tick line in pixels. The default value is 0.7. |
Remarks
The width determines the thickness of the tick line on the chart.
Examples
// The following code demonstrates setting a customize width for the axis minor tick lines.
<SfChart>
<ChartPrimaryXAxis MinorTicksPerInterval="1">
<ChartAxisMinorTickLines Width="3" />
</ChartPrimaryXAxis>
<ChartPrimaryYAxis MinorTicksPerInterval="1">
<ChartAxisMinorTickLines Width="3" />
</ChartPrimaryYAxis>
</SfChart>