create_streaming_plot
Create a real-time streaming chart that updates client-side with simulated data or replays a dataset progressively. Outputs a self-contained HTML page with no server required.
Instructions
Create a live-updating streaming visualization with simulated real-time data.
The output is a self-contained HTML page with Panel periodic callbacks that simulates streaming data — the chart updates in real time. This works entirely client-side, no server needed.
If a dataset is provided, the streaming simulation replays its data progressively. Otherwise, generates a random walk time series.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Column for x-axis (uses index if not provided) | |
| y | No | Column for y-axis (uses first numeric column if not provided) | |
| title | No | Plot title | Live Streaming Data |
| n_points | No | Number of initial points (for generated data) | |
| plot_type | No | Chart type for streaming — 'line', 'scatter', 'area', 'step' | line |
| window_size | No | Max visible points in the rolling window | |
| dataset_name | No | Optional dataset to stream from (replays rows progressively) | |
| update_interval | No | Milliseconds between updates |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |