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.
This commit is contained in:
dotCooCoo
2026-10-28 04:03:37 -07:00
parent 92dcd308c2
commit b4b89a4e36
2 changed files with 12 additions and 0 deletions
+1
View File
@@ -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"),
@@ -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);
}