Axis Tickmarks
Tickmarks divide an axis into equal sections. There are two types of tickmarks: major and minor.
The table below lists tickmark customization options.
Property | Description |
---|---|
Specifies whether the major tickmarks are visible. | |
Specifies whether the minor tickmarks are visible. | |
Specifies whether tickmarks cross the axis. | |
Specifies the major tickmark length (in pixels). | |
Specifies the minor tickmark length (in pixels). | |
Specifies the major tickmark thickness (in pixels). | |
Specifies the minor tickmark thickness (in pixels). |
The following example shows major and minor tickmarks for X and Y-axes:
<Charts:CartesianChart x:Name="chart">
<Charts:CartesianChart.AxisX>
<Charts:AxisX x:Name="axisX" ShowLine="True"
ShowMajorTickmarks="True"
ShowMinorTickmarks="True"
TickmarksLength="7"
TickmarksMinorLength="3"/>
</Charts:CartesianChart.AxisX>
<Charts:CartesianChart.AxisY>
<Charts:AxisY x:Name="axisY" ShowLine="True"
ShowMajorTickmarks="True"
ShowMinorTickmarks="True"
TickmarksLength="7"
TickmarksMinorLength="3"/>
</Charts:CartesianChart.AxisY>
<!--...-->
</Charts:CartesianChart>