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

Function bar_plot_renders_to_svg

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

Source from the content-addressed store, hash-verified

178
179 #[test]
180 fn bar_plot_renders_to_svg() {
181 let df = df![
182 "labels" => ["a", "b", "c"],
183 "values" => [10.0, 20.0, 30.0]
184 ]
185 .unwrap();
186 let plot = BarPlot::builder()
187 .data(&df)
188 .labels("labels")
189 .values("values")
190 .build();
191 let svg = plot.to_svg();
192 assert!(!svg.is_empty());
193 assert!(svg.contains("<svg"));
194 }
195
196 #[test]
197 fn bar_plot_grouped_renders() {

Callers

nothing calls this directly

Calls 2

valuesMethod · 0.80
to_svgMethod · 0.80

Tested by

no test coverage detected