An example showcasing how to use Chartistry with Leptos and SSR. It borrows heavily from Leptos' SSR mode axum example. more info and start demo ,please check "leptos" and "leptos-chartistry".
Run cargo-leptos watch (note the '-').
The chart redraws once per WebSocket frame, ~10 fps with the bundled feeds.

we can use websocket client to refresh data and plot in real time.
The page is served on 127.0.0.1:3000, and the feed endpoint is
ws://127.0.0.1:8080/ws (see WS_URL in src/app.rs), so run the client and one
of the servers below side by side.
websocket client refresh data
cargo leptos watchuv run server.pycargo run --example server