Expand description
§opsis
Vega-style, TOML-driven plotting framework for Rust. One ChartSpec
drives either an interactive desktop window (egui) or a terminal UI
(ratatui).
use opsis::ChartSpec;
let spec = ChartSpec::from_toml_path("chart.toml")?;
opsis::show(spec)?;See examples/configs/ for sample TOML and examples/ for runnable
Rust demos.
Re-exports§
pub use config::Aggregate;pub use config::ChannelType;pub use config::ChartMeta;pub use config::ChartSpec;pub use config::ChartType;pub use config::DataFormat;pub use config::DataSource;pub use config::Encoding;pub use config::Mark;pub use config::Style;pub use data::Dataset;pub use data::Record;pub use data::Value;pub use error::OpsisError;pub use error::Result;
Modules§
Functions§
- show
- Open an egui window for the spec. Blocks until the window is closed.
- show_
path - Open an egui window from a TOML file path.
- show_
str - Open an egui window from a TOML string.
- show_
terminal - Render the chart in the terminal until the user presses q/Esc/Ctrl-C.
- show_
terminal_ path - Same, from a TOML file.
- show_
terminal_ str - Same, from a TOML string.