mirror of
https://github.com/storytold/gridcraft.git
synced 2026-12-02 02:33:55 -06:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user