lighting-stream
Render a lighting vizualizations using a stream
npm install lightning-stream
This is a module for rendering a stream of data as a lightning visualization. Useful if you have a stream of data you want to quickly vizualize.
Usage
var lightningStream = var from = var line = var el = documentbodyvar data = series: 0var viz = el data { return series: datascore} var stream = var score = 0var source = from source
You can run this example by npm run example
API
var stream = lightningStream(viz, [mapping])
Creates a new writable stream that will forward data written to it to a lighting vizualization. Optionally you can pass a mapping function that will transform the data before it gets passed to the vizualization
Liscence
MIT