Real-time without Streaming API?

Hi all, I was wondering if real-time chart capabilities were possible in plotly.js without making use of the streaming API. I don’t want to use the server technology the API provides as I already have that set up. Can I use the regular plotly.js library for this or do I need to find something else? By real-time I mainly mean the ability to take in new data without have to refresh the entire dataset, like how other real-time libraries do it.

Plotly.extendTraces is what you what to use.

See previous post How to extend traces properly in js for an example.

1 Like

Thanks, this seems to be what I’m looking for. Is there a way to make old data go off the chart after a point, so that the graph does not get overcrowded?

Yes. You can set the maximum number of points the in forth argument of Plotly.extendTraces

See example

1 Like

Last thing, I’m trying to animate the data coming in somehow, at the moment with plotly.animate. So far, it is not working. Is there a way to animate the live data coming in, and make it look smoother?