ICanvas.Polyline
ICanvas
procedure Polyline(ArraySize: Integer; XArray, YArray: OleVariant; Z: Integer);
Type Library
TeeChartx
Description
Draws multiple line segments joining all points in Points parameter.
Polyline might be faster depending your machine hardware configuration and operating system version.
Example [Visual Basic]:
Private Sub TChart1_OnAfterDraw()
Dim ptX As Variant, ptY As Variant
TChart1.Canvas.RotatedEllipse 50, 90, 250, 160, 10, HScroll1.Value
ptX = Array(300, 350, 380, 320, 290)
ptY = Array(200, 190, 210, 90, 180)
TChart1.Canvas.Polyline 5, ptX, ptY, 20
'TChart1.Canvas.Draw 0, 0, Picture1.Picture 'If active, this line draws an image
End Sub