No description, website, or topics provided.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
.gitignore
LICENSE
README.md
index.js
package.json

README.md

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