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

Function bar_plot_horizontal_renders

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

Source from the content-addressed store, hash-verified

213
214 #[test]
215 fn bar_plot_horizontal_renders() {
216 let df = df![
217 "labels" => ["a", "b", "c"],
218 "values" => [10.0, 20.0, 30.0]
219 ]
220 .unwrap();
221 let plot = BarPlot::builder()
222 .data(&df)
223 .labels("labels")
224 .values("values")
225 .orientation(plotlars_core::components::Orientation::Horizontal)
226 .build();
227 let svg = plot.to_svg();
228 assert!(!svg.is_empty());
229 }
230
231 #[test]
232 fn histogram_renders_to_svg() {

Callers

nothing calls this directly

Calls 3

valuesMethod · 0.80
to_svgMethod · 0.80
orientationMethod · 0.45

Tested by

no test coverage detected