# Axis Appearance

## Content



### Alignment

The [Alignment](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.Axis.Alignment.html) property can be set to three different settings: **Center**, **Near**, or **Far**. Setting the alignment to center centers the axis title in comparison to the ChartArea. Setting the alignment to Near places the axis title to the left side of the ChartArea. Setting the alignment to Far places the axis title to the right side of the Chart Area.

### Font

The [Font](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.Axis.Font.html) size and style for the axis title can be changed by manipulating the Font object of the axis. To access the font properties at design time click the **ellipsis** next to the Font node or expand the Font node under the axis object in the Visual Studio Properties window. To programmatically modify the Axis font properties, enter the following:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
Dim f As Font = New Font("Arial", 8, FontStyle.Bold)
C1Chart1.ChartArea.AxisX.Font = f
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
Font  f = new Font("Arial", 8, FontStyle.Bold);
c1Chart1.ChartArea.AxisX.Font = f;
```

DOC-DETAILS-TAG-CLOSE

### ForeColor

The [ForeColor](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.Axis.ForeColor.html) property changes the color of the axis line, tick marks, and title. To change the [ForeColor](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.Axis.ForeColor.html) set the [ForeColor](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.Axis.ForeColor.html) property to a valid color in code, or the property can also be accessed at design time under the Axis object in the Visual Studio Properties window.

### Thickness

The thickness of the axis is determined by the [Thickness](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.Axis.Thickness.html) property. The value is specified in pixels. Axes with a zero thickness value are fully drawn except for the axis line itself.

The following chart displays the Y-Axis with its [Thickness](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.Axis.Thickness.html) property set to zero:

<br />![](https://cdn.mescius.io/document-site-files/images/70bd33a2-280e-4cc3-a1c0-7b827eceb8aa/imagesext/image9_182.png)

## See Also

[Axis Title and Rotation](/componentone/docs/win/online-chart2d/chartareaandplotarea/axes/axistitleandrotation)