How to achieve the Sci Chat functionality in JavaScript . I want to update the list instead of removing a range of data from the dataseries.
- manoj prabakar asked 1 year ago
- You must login to post comments
Hi Manoj
We have a FIFO Capacity in SciChart WPF – but not in JS yet.
At the moment the accepted workaround is to use dataseries functions appendRange() removeRange() however this comes with a performance cost, because you are doing two operations to the dataSeries including memcpy on each update.
Also a look at our Tutorial on realtime Updates which shares some approaches to scrolling the charts.
The good news is that because SciChart.js is based on the same underlying C++ codebase as our Windows charts, introducing FIFOCapacity into JavaScript is not difficult, and will result in massive performance gains.
However, we have been focussed on other things such as our SciChart.js v3 release, documentation examples and more.
So my question to you is:
- Can the workaround above work for you for now?
- Or if not, how urgently do you need this enhancement and what are your requirements?
Get in touch with sales to discuss further because qualifying yourselves will go a long way to helping us prioritise work!
Best regards,
Andrew
- Andrew Burnett-Thompson answered 1 year ago
- You must login to post comments
Hi Andrew,
Yes i can achieve the same FIFO Capacity functionality in JavaScript with the data series functions appendRange() removeRange()
- manoj prabakar answered 1 year ago
- last edited 1 year ago
-
That’s great. Note that does require a few extra operations so if you see performance issues (should be fine up to ~1m points) let me know. We can always port / include the efficient FIFOCapacity method from WPF to JS
- You must login to post comments
Please login first to submit.