Integration recipes
Start with your first chart, then choose a task. These
recipes target main, egui 0.37, and the widget feature. Every visual example
runs locally in the page with fixed synthetic data. The displayed Rust is
imported from the same scene source
that the docs application compiles.
| Task | Result |
|---|---|
| Add price lines and markers | A level and a clickable bar annotation |
| Show price and volume | Candles and zero-based volume columns in separate panes |
| Build a host readout | A legend and tooltip beside the built-in readout, from chart events |
| Synchronize two charts | Shared UTC crosshair and viewport without range feedback |
| Export an image | Image bytes for a host file, clipboard or browser download |
The interaction guide explains pointer, keyboard, crosshair and event delivery. The second-series tutorial adds a host-fed comparison to your first chart. For historical and streaming data, continue with a local feed.
Each setup function accepts an existing chart. Keep that chart and any returned series handle or scene state between frames. The recipes use the dependencies from installation and need no accounts, network feed or storage service. For a native run from a source checkout:
cargo run --manifest-path examples/docs/Cargo.toml -- annotationsReplace annotations with the scene name printed above another recipe’s code.
Your application supplies real data and delivers exported bytes to the user.