Skip to main content

Module export

Module export 

Source
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§

ExportButton
Quick export button widget for inline export actions
ExportConfig
Export configuration for customizing chart exports
ExportDialog
Export dialog for configuring and executing chart exports

Enums§

ExportFormat
Export format options
ExportResponse
Response from the export dialog
ExportStatus
Internal status tracking for export operations

Traits§

Exportable
Trait for implementing chart export functionality