flot-stream

0.1.0 • Public • Published

flot-stream

Stream to a FlotChart.

Installation

npm install flot-stream

Usage

var FlotStream = require('flot-stream');
 
var plot = $.plot('#placeholder', [ ], {
  series: {
    shadowSize: 0
  },
  yaxis: {
    min: 0,
    max: 100
  },
  xaxis: {
    min: 0,
    max: 100,
    show: false
  }
});
 
var stream = new FlotStream({
  plot: plot,
  points: 100
});
 
setInterval(function () {
  stream.write(Math.random() * 100);
}, 100);

Readme

Keywords

none

Package Sidebar

Install

npm i flot-stream

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • mmalecki