use crate::chart::Chart;
use crate::mark::text::MarkText;
impl Chart<MarkText> {
pub fn configure_text<F>(mut self, f: F) -> Self
where
F: FnOnce(MarkText) -> MarkText,
{
let mark = self.mark.take().unwrap_or_default();
self.mark = Some(f(mark));
self
}
}