Plotly Gauge Dynamic

I have a problem with Plotly JS Gauge that I cannot solve and I have tried a thousand ways to solve it. How can I use Plotly JS Gauge on real time, dynamically? I have tried this but it does not …