Hi, I’ve a question about chart draw performance. I have separated thread for calculating chart data. When the data are ready, I update chart’s data points and calculate new chart data, update the chart again a so on. The question is how the chart behaves if I update the chart data too fast? If there is no time for the chart to finish the drawing and I supply another set of data for the chart, what can I expect? Is there a way to be notified if the chart was drown and is ready to get new values?
Imported from legacy forums. Posted by Igor (had 2429 views)
Well, to be able to update the chart, as is true of any Winform UI, you must do it on the main UI thread (that is, the thread on which the UI is created). Now all operations on the main thread will be sequential, and as such, though you send as many update request as you want from the background thread, they will all be executed only once the previous one is finished on the main thread.
Imported from legacy forums. Posted by André (had 2719 views)