Arrow style for bars

TeeChart for ActiveX, COM and ASP
Post Reply
waterboy
Newbie
Newbie
Posts: 3
Joined: Wed Jan 08, 2003 5:00 am

Arrow style for bars

Post by waterboy » Tue Feb 10, 2004 7:48 pm

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

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Feb 12, 2004 5:32 pm

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

Post Reply