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
Visual Basic |
Copy Code
|
---|---|
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#
C# |
Copy Code
|
---|---|
ValueLabel vl = c1Chart1.ChartArea.AxisX.ValueLabels.AddNewLabel(); vl.Appearance = ValueLabelAppearanceEnum.TriangleMarker; vl.MarkerSize = 50; vl.Color = Color.Transparent; vl.NumericValue = 2; |