smoothie-stream

Stream time-series to a chart and watch it in your browser.

npm install smoothie-stream
4 downloads in the last week
19 downloads in the last month

smoothie-stream

Stream time-series to a chart and watch it in your browser.

Stream interface to smoothie

compatible with probe-stream

var SmoothieStream = require('smoothie-stream')
var from = require('from')

//generate a stream with random data
from(function (i, next) {

  this.emit('data', {
    A: Math.random(),
    B: Math.random(),
    C: Math.random(),
    timestamp: Date.now()
  })
  setTimeout(next, 500)
}).pipe(
  //and just pipe it to smoothie-stream!
  SmoothieStream({
    canvas: document.getElementById('canvas'),
    chart: {millisPerPixel: 20}
  })

)

License

MIT

npm loves you