()
| 16 | let time; |
| 17 | |
| 18 | function render () { |
| 19 | if (smoothie) smoothie.stop(); |
| 20 | $('chart').width = document.body.clientWidth; |
| 21 | smoothie = new SmoothieChart(); |
| 22 | smoothie.streamTo($('chart'), 1000); |
| 23 | time = new TimeSeries(); |
| 24 | smoothie.addTimeSeries(time, { |
| 25 | strokeStyle: 'rgb(255, 0, 0)', |
| 26 | fillStyle: 'rgba(255, 0, 0, 0.4)', |
| 27 | lineWidth: 2 |
| 28 | }); |
| 29 | } |
| 30 | |
| 31 | // socket |
| 32 | const socket = new eio.Socket(); |
no test coverage detected