Scatter Chart
Posted: Fri Jun 02, 2006 2:28 pm
How can I produce a scatter chart with lines joining successive points in the order they are input, as for example in MS EXCEL'S XY (Scatter) chart type.
Thanks Nick
Thanks Nick
Code: Select all
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.View3D:=false;
Series1.FillSampleValues();
Series1.Pointer.Visible:=true;
Series1.Pointer.Style:=psDiamond;
end;
Code: Select all
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.View3D:=false;
With Series1 do
begin
AddXY(8,7);
AddXY(1,4);
AddXY(2,5);
AddXY(7,3);
AddXY(6,2);
AddXY(5,7);
AddXY(9,1);
Pointer.Style:=psDiamond;
Pen.Color:=Color;
end;
end;