From b4b89a4e3624c404b46fa251ebcb27ba93c6707a Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Wed, 28 Oct 2026 04:03:37 -0700 Subject: [PATCH] Charts: Format Chart Area's Chart Type offers 100% Stacked Line with Markers The pane's Chart Type section listed 100% Stacked Line but not its marker variant, so a chart of that type showed no current type there and could not be changed to it from the pane. --- crates/ui-egui/src/panes.rs | 1 + crates/ui-egui/tests/it/format_chart_type.rs | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/crates/ui-egui/src/panes.rs b/crates/ui-egui/src/panes.rs index 54fa9ac02..a21c69243 100644 --- a/crates/ui-egui/src/panes.rs +++ b/crates/ui-egui/src/panes.rs @@ -193,6 +193,7 @@ fn format_chart(app: &mut SheetApp, ui: &mut Ui) { ("Line", "line", "markers"), ("Stacked Line", "line", "stacked"), ("100% Stacked Line", "line", "stacked100"), + ("100% Stacked Line with Markers", "line", "stacked100Markers"), ("Area", "area", ""), ("Stacked Area", "area", "stacked"), ("100% Stacked Area", "area", "stacked100"), diff --git a/crates/ui-egui/tests/it/format_chart_type.rs b/crates/ui-egui/tests/it/format_chart_type.rs index ae19e1091..b9ef69da4 100644 --- a/crates/ui-egui/tests/it/format_chart_type.rs +++ b/crates/ui-egui/tests/it/format_chart_type.rs @@ -89,3 +89,14 @@ fn chart_type_marks_the_chart_s_current_type() { } } } + +#[test] +fn chart_type_offers_and_marks_the_hundred_percent_stacked_line_types() { + let (mut h, id) = open_chart_type("line", "stacked100Markers"); + assert!(marked(&h, "100% Stacked Line with Markers")); + assert!(!marked(&h, "100% Stacked Line")); + click(&mut h, "100% Stacked Line"); + assert_eq!(kind(&h, id), ChartKind::LineStacked100); + click(&mut h, "100% Stacked Line with Markers"); + assert_eq!(kind(&h, id), ChartKind::LineStacked100Markers); +}