# Axis Lines

## Content



The axis lines are lines that appear horizontally from the starting value to the ending value for the Y-Axis and vertically from the starting value to the ending value for the X-Axis. The Z-axis line is used in 3D charts.

You can use either the **Axis.Foreground** or the **ShapeStyle.Stroke** property to apply color to the axis line. Note that the **Axis.Foreground** property overrides the **ShapeStyle.Stroke** property.

You can specify the type of shape for the starting and ending points of the axis line using the **StrokeStartLineCap** and **StrokeEndLineCap** properties.

## See Also

[Dependent Axis](/componentone/docs/wpf/online-chart/overview/ChartFeatures/Axis/DependentAxis)