influxdata / giraffe

A foundation for visualizations in the InfluxDB UI
https://influxdata.github.io/giraffe/
MIT License
183 stars 34 forks source link

test: auto refresh in Storybook demos #209

Open TCL735 opened 4 years ago

TCL735 commented 4 years ago

There should be a knob in Storybook to allow selecting an auto refresh interval for the <Plot>. The data can be random. The purpose is to simulate an actual cell or dashboard of Influxdb's UI.

abhi1693 commented 3 years ago

I have added setInterval function that dispatches to get new data after every 10 seconds. I get the data, however, the chart does not re-render until I refresh the page. Is there a sample or a demo to help with this?

abhi1693 commented 3 years ago

@TCL735 Any insights here?