TArrowSeries.AddArrow
TArrowSeries
function AddArrow(Const X0, Y0, X1, Y1: Double; Const ALabel: String; AColor: TColor): Integer;
Unit
ArrowCha
Description
The AddArrow function adds a new arrow point to the Series.
Returns the position of the Arrow in the list. Positions start at zero.
Each arrow is made of 2 points:
(X0,Y0) The starting arrow point.
(X1,Y1) The arrow head end point.
Example:
This code fills an ArrowSeries with two random arrows:
var
x0,y0,x1,y1 : Double;
begin
ArrowSeries1.StartXValues.DateTime:=False;
ArrowSeries1.EndXValues.DateTime:=False;
ArrowSeries1.Clear;
x0 :=Random( 1000 );
y0 :=Random( 1000 );
x1 :=x0 + Random( 1000 ) - 500 ;
y1 :=y0 + Random( 1000 ) - 500 ;
ArrowSeries1.AddArrow( x0, y0, x1, y1, '', clBlue);
x0 :=Random( 1000 );
y0 :=Random( 1000 );
x1 :=x0 + Random( 1000 ) - 500 ;
y1 :=y0 + Random( 1000 ) - 500 ;
ArrowSeries1.AddArrow( x0, y0, x1, y1, '', clYellow);
end;