This could be done via an external crate, in the likes of https://github.com/emilk/egui_plot/pull/171