https://github.com/youngday/realtime_plot_wasm
websocket data transfer to leptos ssr ,realtime plot ,and a pause button.
https://github.com/youngday/realtime_plot_wasm
leptos leptos-chartistry realtime-plot wasm
Last synced: 8 months ago
JSON representation
websocket data transfer to leptos ssr ,realtime plot ,and a pause button.
- Host: GitHub
- URL: https://github.com/youngday/realtime_plot_wasm
- Owner: youngday
- Created: 2025-06-29T11:21:54.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-07-13T05:25:17.000Z (9 months ago)
- Last Synced: 2025-07-13T07:26:03.793Z (9 months ago)
- Topics: leptos, leptos-chartistry, realtime-plot, wasm
- Language: Rust
- Homepage:
- Size: 235 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# realtime plot
## fun
An example showcasing how to use Chartistry with Leptos and SSR. It borrows heavily from [Leptos' SSR mode axum example](https://github.com/leptos-rs/leptos/tree/main/examples/ssr_modes_axum).
more info and start demo ,please check "leptos" and "leptos-chartistry".
## run
Run `cargo-leptos watch` (note the '-').
## out
frame:30 fps

## plot
## NOTE:
we can use websocket client to refresh data and plot in real time.
### client
websocket client refresh data
```sh
cargo leptos watch
```
### python server
```sh
uv run /src/server.py
```
### rust server
```sh
cargo run --example server
```