lightningjs
v1.0.0
Published
Node.js client for the Lightning data visualization server.
Downloads
33
Maintainers
Readme
lightning.js
Node.js client for the Lightning data visualization server.
Install
$ npm install --save lightning.js
Usage
Plotting
var Lightning = require('lightning.js');
var lightning = new Lightning();
lightning.line([1,1,2,3,5,8,13,21]);
Updating
var Lightning = require('lightning.js');
var lightning = new Lightning();
var viz = lightning.lineStreaming([1,1,2,3,5,8,13,21]);
setInterval(function() {
viz.appendData([Math.random()]);
});
Examples
See the tests
Available Methods
line(series)
lineStreaming(series)
stackedLine(series)
matrix(mat)
scatter(x,y)
scatterStreaming(x,y)
scatter3(x,y,z)
adjacency(mat)
force(mat)
graph(x, y, mat)
map(regions, values)
License
MIT © Matthew Conlen