Skip to content

Instantly share code, notes, and snippets.

@mathisonian mathisonian/test.js
Created Aug 14, 2016

Embed
What would you like to do?
run in node
var Lightning = require('lightning.js');
var lightning = new Lightning();
lightning.lineStreaming([1,1,2,3,5,8,13,21])
.then(function(viz) {
viz.open()
setInterval(function() {
viz.appendData([Math.random()]); // appends to existing data
// or
// viz.updateData([Math.random()]); // replaces existing data
}, 1000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.