ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  How to know Graph Rendering is Completed?
Posted by Amal V R on Mar-28-2011 14:56
Hai Peter,

If i give the chart control large data of about 30000 double values suppose,It will definitely
take some time to render.Before I supply next set of data of same size ,is there any way to check the graph rendering has been completed or not.

Regards

Amal V R

  Re: How to know Graph Rendering is Completed?
Posted by Peter Kwan on Mar-28-2011 15:15
Hi Amal,

When you finish running the charting code, the rendering is completed.

If you can check whether rendering is completed, that means your code is multi-threaded (that is, when ChartDirector is using the thread for rendering, part of your code is still running in another thread). You can check if the rendering thread has been completed to see if the chart rendering has been completed.

An example is like:


hasCompleted = false;

..... create the chart and set it to the chart viewer

hasCompleted = true;

Your code in another thread can then check the hasCompleted variable to see if rendering has been completed.

Hope this can help.

Regards
Peter Kwan