# Adding a Transparent Label to Adjust the Gap Between the Values and the X-Axis

## Content



This code adds a transparent ValueLabel with the appearance of an arrow to the chart; since it is transparent, it is not visible to the end-user. By changing the ValueLabel.MarkerSize property, you can adjust the gap between the vlues and the x-axis.

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
c1Chart1.ChartArea.AxisX.AnnoMethod = C1.Win.C1Chart.AnnotationMethodEnum.Mixed     
Dim vl As ValueLabel = c1Chart1.ChartArea.AxisX.ValueLabels.AddNewLabel() 
vl.Appearance = ValueLabelAppearanceEnum.TriangleMarker     
vl.MarkerSize = 50     
vl.Color = Color.Transparent     
vl.NumericValue = 2
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
ValueLabel vl = c1Chart1.ChartArea.AxisX.ValueLabels.AddNewLabel();
vl.Appearance = ValueLabelAppearanceEnum.TriangleMarker;
vl.MarkerSize = 50;
vl.Color = Color.Transparent;
vl.NumericValue = 2;
```

DOC-DETAILS-TAG-CLOSE

## See Also

[Displaying both the Chart Legend and Chart Header](/componentone/docs/win/online-chart2d/chartforwinformstask/displayingboththecha)