Multiple chart display in winforms devexpress
-
I have a multithreaded application.Each thread results some data which I need to display in chart/graph . How can I do it? For example if there are 16 threads then there should be 16 small charts on winform in 4 rows and 4 columns. If 17 threads, then another chart added accordingly.
-
I have a multithreaded application.Each thread results some data which I need to display in chart/graph . How can I do it? For example if there are 16 threads then there should be 16 small charts on winform in 4 rows and 4 columns. If 17 threads, then another chart added accordingly.
And? What have you tried? What happened when you did? Where are you stuck? What help do you need?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
-
I have a multithreaded application.Each thread results some data which I need to display in chart/graph . How can I do it? For example if there are 16 threads then there should be 16 small charts on winform in 4 rows and 4 columns. If 17 threads, then another chart added accordingly.
Member 14663811 wrote:
How can I do it?
Synchronziation. With the UI thread. Quite some articles on CP cover it. Most will not be using a graph as an example, but the principles remain the same.
Bastard Programmer from Hell :suss: "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
-
I have a multithreaded application.Each thread results some data which I need to display in chart/graph . How can I do it? For example if there are 16 threads then there should be 16 small charts on winform in 4 rows and 4 columns. If 17 threads, then another chart added accordingly.
You don't need 16 threads; you just need one thread and 16 (concurrent) queues of data points (one for each series / source). The form would have 16 "chart controls" (or more) in a "wrap panel"; one for each queue / source. If you're talking "millions" of data points, only some commercial software will do. On the other end, I've used one thread to poll all source devices at intervals; so still only 2 threads in total.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food