Page 1 of 1

Draw X-Y data / circle with TFastLineSeries problem

Posted: Tue Jul 24, 2007 7:26 am
by 9245460
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

Posted: Tue Jul 24, 2007 11:26 am
by 9047589
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

It's working!

Posted: Tue Jul 24, 2007 2:56 pm
by 9245460
It's working.


Thank you very much!

Regards,
Aljosa