Skip to content

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.

TaskResult
Add price lines and markersA level and a clickable bar annotation
Show price and volumeCandles and zero-based volume columns in separate panes
Build a host readoutA legend and tooltip beside the built-in readout, from chart events
Synchronize two chartsShared UTC crosshair and viewport without range feedback
Export an imageImage 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:

Terminal window
cargo run --manifest-path examples/docs/Cargo.toml -- annotations

Replace annotations with the scene name printed above another recipe’s code. Your application supplies real data and delivers exported bytes to the user.