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
Scatter Chart
-
- Advanced
- Posts: 103
- Joined: Tue Mar 02, 2004 5:00 am
- Location: Bad Wurzach
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Nick,
You can use a TLineSeries and make its pointer visible:
You can use a TLineSeries and make its pointer visible:
Code: Select all
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.View3D:=false;
Series1.FillSampleValues();
Series1.Pointer.Visible:=true;
Series1.Pointer.Style:=psDiamond;
end;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Scatter Chart
Hi Narcis,
Will this chart in the order the data is input rather than in ascending x-axis order?
Thanks NickH
Will this chart in the order the data is input rather than in ascending x-axis order?
Thanks NickH
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi NickH,
Then you may better use a TPoint3DSeries and something like this:
Then you may better use a TPoint3DSeries and something like this:
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;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |