Can I implement a feature in SciChart that allows me to pause and resume rendering activity on a SciChart renderable surface when a user clicks on the SciChart renderable surface?
- Vishnu K U asked 12 months ago
- You must login to post comments
Hi there,
Could you clarify what you mean by pause/resume?
SciChart.js only redraws when:
- You change a property for example
axis.visibleRange
- You update or change data in a
dataSeries
- You resize the chart parent
<div/>
- You mouse0over the chart with some behaviours enabled such as
CursorModifier
If you are updating data dynamically and want to stop the chart redrawing, the simplest way would be to queue / buffer the updates (stop updating data).
However, if it is something else, then let me know
Best regards
Andrew
- Andrew Burnett-Thompson answered 12 months ago
- You must login to post comments
Hi Andrew,
I need to freeze the plot that rendering on the scichart surface when i clicks on the rendering surface, and need to continue rendering with the realtime data when i click the surface i again. Is there any solution for this?
- Vishnu K U answered 12 months ago
- last edited 12 months ago
- You must login to post comments
Hi Vishnu
You can do pretty much anything with SciChart.js, however it depends exactly what you want, and how you’ve setup the chart so far.
Take a look at this demo: Zoom and Pan a realtime chart.
This has dynamically updating data, and when you click/drag to zoom, it pauses the scrolling, then resumes when you double click. There is also a video tutorial on the same topic here.
There is also a feature to freeze all updates (all drawing, scrolling, zooming, everything). However this will freeze all drawing which may not be what you want.
I suggest what you do is, share the code you’ve used to setup your chart (preferably in a Codepen, or CodeSandbox – Learn How), then say what behaviour you want.
From that we can provide a solution
Best regards
Andrew
- Andrew Burnett-Thompson answered 12 months ago
- last edited 12 months ago
- You must login to post comments
Please login first to submit.