Setup
Usage
Clients
Visualizations
Links

Streaming visualizations

All Lightning visualizations support updating or appending data to the visualization after it has been created, and some of our visualizations have been designed with append logic well-suited to streaming applications.

Streaming Line


Python client example

from lightning import Lightning
from numpy import random
 
lgn = Lightning()
 
series = random.randn(5,10)
 
viz = lgn.linestreaming(series)
 
for _ in range(100):
    viz.append(random.randn(5, 1))

Streaming Scatter


Python client example

from lightning import Lightning
from numpy import random,
 
lgn = Lightning()
 
x = random.randn(100)
y = random.randn(100)
 
viz = lgn.scatterstreaming(x, y)
 
for _ in range(100):
    x = random.randn(100)
    y = random.randn(100)
    viz.append(x, y)