www.sdlsuite.com Forum Index www.sdlsuite.com
Discussion of technical aspects of the SDL Component Suite
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

access chart data from RChart

 
Post new topic   Reply to topic    www.sdlsuite.com Forum Index -> ChartPack
View previous topic :: View next topic  
Author Message
bigjooe



Joined: 08 Oct 2013
Posts: 3

PostPosted: Tue Jan 09, 2018 6:30 pm    Post subject: access chart data from RChart Reply with quote

Hi, I would like to access RChart data to export it in excell format(have that part), I have 2 colored graph and did following:
begin
i:=0;
if SaveDialog1.Execute then
begin
XLSWrite1.FileName:=SaveDialog1.FileName;
XLSWrite1.OpenFile;
np := RChart1.FirstItemOfLinkedList; { set pointer to first item}
while np^.Element <> tkNone do { loop through all items }
begin
if np^.color=clRed then
begin
str(np^.y:6:3,s);
XLSWrite1.WriteString(0,i,1,s);
np := np^.Next; { set pointer to next item }
end else
if np^.color=clBlue then
begin
str(np^.y:6:3,s);
XLSWrite1.WriteString(1,i,1,s);
np := np^.Next; { set pointer to next item }
end else np := np^.Next ;
i:=i+1;
{np := np^.Next;}
end;
XLSWrite1.CloseFile;
end;

but I get too many items...can someone help?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.sdlsuite.com Forum Index -> ChartPack All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group