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

Function bar_plot_grouped_renders

crates/plotlars-plotters/src/ext.rs:197–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195
196 #[test]
197 fn bar_plot_grouped_renders() {
198 let df = df![
199 "labels" => ["a", "b", "a", "b"],
200 "values" => [10.0, 20.0, 30.0, 40.0],
201 "g" => ["x", "x", "y", "y"]
202 ]
203 .unwrap();
204 let plot = BarPlot::builder()
205 .data(&df)
206 .labels("labels")
207 .values("values")
208 .group("g")
209 .build();
210 let svg = plot.to_svg();
211 assert!(!svg.is_empty());
212 }
213
214 #[test]
215 fn bar_plot_horizontal_renders() {

Callers

nothing calls this directly

Calls 2

valuesMethod · 0.80
to_svgMethod · 0.80

Tested by

no test coverage detected