MCPcopy Create free account
hub / github.com/alceal/plotlars / resolve_bar_mode

Function resolve_bar_mode

crates/plotlars-plotters/src/render/bar.rs:25–27  ·  view source on GitHub ↗
(layout: &LayoutIR)

Source from the content-addressed store, hash-verified

23}
24
25fn resolve_bar_mode(layout: &LayoutIR) -> &BarMode {
26 layout.bar_mode.as_ref().unwrap_or(&BarMode::Group)
27}
28
29fn is_stacked(mode: &BarMode) -> bool {
30 matches!(mode, BarMode::Stack | BarMode::Relative)

Callers 2

render_bar_verticalFunction · 0.85
render_bar_horizontalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected