Hi,
I am working on an application that involves realtime graphing of large amounts of data. Plotting the data in realtime is working flawlessly, except the legend checkboxes associated with the DataSeries are quite temperamental.
By temperamental, I mean that attempting to toggle a checkbox in the legend (via clicking the checkbox), only works sporadically. Resultantly, the users are required to click the checkbox multiple times until the checkbox is successfully toggled.
This only occurs while plotting realtime data, and I’m assuming it is related to the UI thread being bogged down.
I’ve tried setting the SciChartSurface.RenderPriority to low, but this failed to fix the issue. I’m unsure if there is anything you guys can do on your side; however, I figured I’d reach out just in case. Any tips would be much appreciated!
- Jared Weyer asked 9 months ago
- Hi Jared, Thank you for reporting this. Could you please also provide us with steps to reproduce the reported issue in one of our examples from the WPF Examples suite or prepare a small sample project reproducing this and send us for investigation? Thanks in advance, Lex, SciChart Technical Support Engineer
- You must login to post comments
Hi,
It sounds like the UI thread is indeed getting bogged down due to the real-time data plotting. One potential solution is to offload the legend checkbox updates to a separate thread. You can use a Task.Run
to handle the checkbox state changes asynchronously. Additionally, ensure that any UI updates are invoked on the main thread using Dispatcher.Invoke
. This way, your main UI thread isn’t overwhelmed by both plotting and handling user interactions. Give this a try and see if it improves the responsiveness of your legend checkboxes.
Hope this helps!
- Leon Sykes answered 8 months ago
- last edited 8 months ago
- You must login to post comments
Please login first to submit.