diff --git a/crates/engine/src/cmd/format/font.rs b/crates/engine/src/cmd/format/font.rs index c977fcb6f..d9c2c78b4 100644 --- a/crates/engine/src/cmd/format/font.rs +++ b/crates/engine/src/cmd/format/font.rs @@ -114,6 +114,7 @@ pub(super) fn color(s: &mut Session, p: &Value) -> Result { edit_shapes(s, &json!({"ids": charts}), "format.color", |sh| { if let ShapeKind::Chart(ch) = &mut sh.kind { ch.text_color = Some(tc.clone()); + ch.legend_entries.iter_mut().for_each(|e| e.color = None); ch.raw = None; } Ok(())