Pre loader

FIFO capacity function in sciChart js

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

Answered
1
0

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.

Version
2.2.2417
  • You must to post comments
Best Answer
1
0

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

  • You must to post comments
1
0

Hi Andrew,

Yes i can achieve the same FIFO Capacity functionality in JavaScript with the data series functions appendRange() removeRange()

  • Andrew Burnett-Thompson
    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 to post comments
Showing 2 results
Your Answer

Please first to submit.