Expand description
Chart export functionality for screenshots and saving charts
This module provides widgets and traits for exporting charts to multiple formats:
- PNG images
- CSV of the bar data and visible study plots
- Clipboard copy
§Example
use egui_charts::ui::export::{ExportDialog, ExportResponse};
let mut export_dialog = ExportDialog::new();
// In your egui update loop
match export_dialog.show(ctx) {
ExportResponse::Export { config, save_path } => {
// Trigger export with config
println!("Exporting to: {:?}", save_path);
}
ExportResponse::Closed => {
// User closed the dialog
}
ExportResponse::None => {
// Dialog is not open or no action taken
}
}Structs§
- Export
Button - Quick export button widget for inline export actions
- Export
Config - Export configuration for customizing chart exports
- Export
Dialog - Export dialog for configuring and executing chart exports
Enums§
- Export
Format - Export format options
- Export
Response - Response from the export dialog
- Export
Status - Internal status tracking for export operations
Traits§
- Exportable
- Trait for implementing chart export functionality