[]
        
(Showing Draft Content)

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

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.

To write code in Visual Basic

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

To write code in C#

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

See Also

Displaying both the Chart Legend and Chart Header