An open API service indexing awesome lists of open source software.

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.

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
![alt text](demo.png)

## 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
```