time taken to plot the graph

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
cs_ech
Newbie
Newbie
Posts: 14
Joined: Mon Oct 02, 2006 12:00 am

time taken to plot the graph

Post by cs_ech » Tue Nov 10, 2009 9:46 pm

Hi,

I am extracting data from SybaseIQ and plotting it using the add method
while (rdr.Read() )
{
DateTime dt = (System.DateTime)rdr.GetValue(0);
Double latency = (Double)rdr.GetValue(1);
f1.points1.Add(dt,latency);
f1.fastline1.Add(dat, latency);
}
There are 20 million data points that get plotted on one graph and it is taking approximately 2 hours to produce it.
I timed the data retrival process and that takes only a few minutes.
Clearly, the delay caused is because of the tool. Is there any way i can fasten the process. Please advise.

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

Re: time taken to plot the graph

Post by Narcís » Wed Nov 11, 2009 2:39 pm

Hi cs_ech,

You could set AutoRepaint to false before populating series and set AutoRepaint to back to true after it. I recommend you to read the Real-time Charting article here for optimizing TeeChart's performance. This is a Delphi article but most of it also applies to TeeChart for .NET.
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

Post Reply