Page 1 of 1
Arrow style for bars
Posted: Tue Feb 10, 2004 7:48 pm
by 9078491
Is there a way to set the direction of the arrow? When I select the arrow style for a regular bar chart the arrows are always pointing up. Is there a property I can set to have it point either up or down?
Thanks,
Scott
Posted: Thu Feb 12, 2004 5:32 pm
by Pep
Hi Scott,
the only way around this is to use an Arrow Series type instead of Bar Series. Using this series type you can simulate as in the following code :
Code: Select all
Private Sub Form_Load()
With TChart1
.AddSeries scArrow
With .Series(0)
.XValues.DateTime = False
.asArrow.ArrowHeight = 10
.asArrow.ArrowWidth = 10
.asArrow.AddArrow 0, 0, 0, 10, "", clTeeColor
.asArrow.AddArrow 1, 0, 1, -5, "", clTeeColor
.asArrow.ArrowWidth = 15
End With
.Axis.Bottom.MinimumOffset = 10
.Axis.Bottom.MaximumOffset = 10
End With
End Sub