TChart Canvas: Adding a line with an arrow
TChart Canvas: Adding a line with an arrow
Is there a method to add a line with an arrow to the TChart Canvas? I'm adding a line with the Canvas.MoveTo() and Canvas.LineTo() calls but how do I add a line with an arrow?
Re: TChart Canvas: Adding a line with an arrow
Hello,
TeeChart includes an Arrow Series. You can add arrows with it using axis values (instead of using pixel values).
Ie:
TeeChart includes an Arrow Series. You can add arrows with it using axis values (instead of using pixel values).
Ie:
Code: Select all
TChart1.AddSeries scBar
TChart1.Series(0).FillSampleValues 5
TChart1.Series(0).ColorEachPoint = True
TChart1.AddSeries scArrow
TChart1.Series(1).ColorEachPoint = True
TChart1.Series(1).asArrow.ArrowHeight = 10
TChart1.Series(1).asArrow.ArrowWidth = 10
With TChart1.Series(0)
For i = 0 To .Count - 2
TChart1.Series(1).asArrow.AddArrow .XValues.Value(i), .YValues.Value(i) / 2, .XValues.Value(i + 1), .YValues.Value(i + 1) / 2, "", clTeeColor
Next i
End With
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |