Skip to content

Instantly share code, notes, and snippets.

Created Aug 14, 2016
What would you like to do?
run in node
var Lightning = require('lightning.js');
var lightning = new Lightning();
.then(function(viz) {
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