Draw X-Y data / circle with TFastLineSeries problem

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
PoLabs
Newbie
Newbie
Posts: 28
Joined: Wed Jun 06, 2007 12:00 am

Draw X-Y data / circle with TFastLineSeries problem

Post by PoLabs » Tue Jul 24, 2007 7:26 am

Currently I am using TeeChart 7 for Delphi 2007. I have a question about drawing XY data. I use TChart with TFastLineSeries for displaying time dependent data (Y-data, T-Time), but
when I try to draw Y-data, X-data (circle or polygon) the result is wrong. I saw that drawing is done the other way that I had thought. In Delphi common way to draw data is with metods MoveTo, LineTo, and then Point-To-Point but as I saw here is a little bit different.

I tried to draw a circle but the result is different like I expected. I am using method AddXY to put data in series.


eg.

for i:=0 to 100 do
begin
x:=10*sin(2*pi*i/100)
y:=10*cos(2*pi*i/100)
srAB.AddXY(x,y);
end;


When drawing with above code on canvas of any delphi component you get nice circle, but not with TFastLineSeries.


So my question is how to draw a normal circle with TFastLineSeries or just which component should I use or what should I do to achieve drawing of normal circle or polygone?



Thank you very much for your answer

BR

xxxxxx
Advanced
Posts: 128
Joined: Tue Jun 19, 2007 12:00 am
Location: Russia
Contact:

Post by xxxxxx » Tue Jul 24, 2007 11:26 am

Hi,

Code: Select all

    
YourFastLineSeries.YValues.Order := loNone ;
YourFastLineSeries.XValues.Order := loNone;
can help you. You can do it as well in Chart Editor - Series/General/Sort
Regards,
Alexander

PoLabs
Newbie
Newbie
Posts: 28
Joined: Wed Jun 06, 2007 12:00 am

It's working!

Post by PoLabs » Tue Jul 24, 2007 2:56 pm

It's working.


Thank you very much!

Regards,
Aljosa

Post Reply