✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Scatter Plot Updating Loop

Hi everyone,

I am trying to update an existing scatter plot by adding one datapoint at a time so I can see how it moves.

However, when I run the loop to do this it waits till the loop is done and then populates every datapoint at the same time.

I have tried all functions like react, update, restyle, addTrace/extendTrace etc. and nothing seems to be working.

Does anyone have any ideas why this happening or how to fix?

Thank you in advance!