IValueList.Order
IValueList

property Order: EValueListOrder;

Type Library
TeeChartx

Description
Run-time only. The Order property determines if points will be automatically sorted or it they will remain always at their original positions. This Order is used by default by the Series XValues to draw lines from Left to Right. Setting the XValues.Order property to loNone will respect the points order at point creation. This can be used to draw polygons.

Order Example [Delphi]

This code creates a new LineSeries class that draws a triangle. The code assumes that you already have a line Series defined as Series(0) :

TChart1.Series[ 0 ].Clear;

TChart1.Series[ 0 ].XValues.Order:=loNone;

TChart1.Series[ 0 ].AddXY(-100, 0,'',clRed);

TChart1.Series[ 0 ].AddXY( 0,100,'',clBlue);

TChart1.Series[ 0 ].AddXY( 100, 0,'',clGreen);

TChart1.Series[ 0 ].AddXY(-100, 0,'',clYellow); { the closing line }

Example [Visual Basic]:

TChart1.Series(0).Clear

TChart1.Series(0).XValues.Order = loNone

TChart1.Series(0).AddXY -100, 0, "", vbRed

TChart1.Series(0).AddXY 0, 100, "", vbBlue

TChart1.Series(0).AddXY 100, 0, "", vbGreen

TChart1.Series(0).AddXY -100, 0, "", vbYellow