Version

Axis Tickmarks

Tick marks display points on the axes. They represent a certain numeric point on a scale or the value of the underlying data item in a category axis.

In this topic

This topic contains the following sections:

Property Settings

In the XamFinancialChart control, you can change the length, thickness, and color of the x-axis and y-axis tickmarks using the following properties:

Property Name Property Type Description

double

Determines the length of the tickmarks along the x-axis or y-axis.

Brush

Determines the color of the tickmarks along the x-axis or y-axis

double

Determines the thickness of the tickmarks along the x-axis or y-axis

Code Snippet

The following code snippet demonstrates how to set the color, length and thickness of the tickmarks on the x-axis.

In XAML:

<ig:XamFinancialChart
    XAxisTickLength = "7"
    XAxisTickStrokeThickness = "5"
    XAxisTickStroke = "Blue" />

In C#:

var chart = new XamFinancialChart();
chart.XAxisTickLength = 7;
chart.XAxisTickStrokeThickness = 5;
chart.XAxisTickStroke = Brushes.Blue;

layoutRoot.Children.Add(chart);

In Visual Basic

Dim chart = New XamFinancialChart()
chart.XAxisTickLength = 7
chart.XAxisTickStrokeThickness = 5
chart.XAxisTickStroke = Brushes.Blue

layoutRoot.Children.Add(chart)
financialchart wpf axis tickmarks.png