Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
Strip Chart Functionality
posted

I am trying to make a chart that will continuously shift the data to the left and add on new data on the right.  It's a pretty simple design, 6 chart lines, 250 data points each.  I have it working, but each refresh of data takes over a second to accomplish and uses 100% of the CPU.  It specifically on the updateItemAtIndex call (or the replaceItemAtIndex).

Does anyone know a way to do these efficiently?

Thanks,

Jon 

Parents
No Data
Reply
  • 26458
    Verified Answer
    Offline posted

    Hi Jon,

    The updates should be pretty quick and with 6x250 points, it shouldn't be that much of a load on the CPU.

    Here's a quick sample that demos this. I'm updating every tenth of a second. Try it out and let me know if you're still having a performance slowdown.
    By the way, what device are you using?

    -Max 

    ChartContinuousUpdates.zip
Children