Black Lives Matter. Please consider donating to Black Girls Code today.

Using fetch to stream data to plotly JS

Hello, I’m trying to stream real-time data from a DAQ device to the web using plotly JS. I can retieve the data using fetch and see the value in the browser console but can’t seem to pass this value to plotly JS?

Result of getData() is not data.

You are basically returning null.