how to use a FastLine series to draw the Horizline

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
richfit
Newbie
Newbie
Posts: 6
Joined: Tue Dec 24, 2013 12:00 am
Contact:

how to use a FastLine series to draw the Horizline

Post by richfit » Fri Feb 14, 2014 9:16 am

Hi,
It takes very long time plotting this much data points in horizline series.I don't want to show all points,so I use fastline.But fast line series is vertical line series,how to plot data Horizontally?
Please guide me,thanks.
richfit

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: how to use a FastLine series to draw the Horizline

Post by Narcís » Fri Feb 14, 2014 10:54 am

Hi richfit,

Yes, you can achieve that changing ValueLists sorting like and populating series like this:

Code: Select all

uses Series;

procedure TForm1.FormCreate(Sender: TObject);
var Series1: TFastLineSeries;
    i: Integer;
begin
  Series1:=TFastLineSeries.Create(Self);
  Series1.XValues.Order:=loNone;
  Series1.YValues.Order:=loAscending;

  for i:=0 to 10 do
    Series1.AddXY(random, i);

  Chart1.AddSeries(Series1);
  Chart1.View3D:=False;
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
Image Image Image Image Image Image
Instructions - How to post in this forum

richfit
Newbie
Newbie
Posts: 6
Joined: Tue Dec 24, 2013 12:00 am
Contact:

Re: how to use a FastLine series to draw the Horizline

Post by richfit » Mon Feb 17, 2014 2:02 am

Thanks for your reply.Thanks very much.

richfit
Newbie
Newbie
Posts: 6
Joined: Tue Dec 24, 2013 12:00 am
Contact:

Re: how to use a FastLine series to draw the Horizline

Post by richfit » Mon Feb 17, 2014 2:03 am

Thanks for your reply.Thanks very much.

Post Reply