()
| 160 | |
| 161 | #[test] |
| 162 | fn line_plot_additional_lines_renders() { |
| 163 | let df = df![ |
| 164 | "x" => [1.0, 2.0, 3.0], |
| 165 | "y1" => [4.0, 5.0, 6.0], |
| 166 | "y2" => [7.0, 8.0, 9.0] |
| 167 | ] |
| 168 | .unwrap(); |
| 169 | let plot = LinePlot::builder() |
| 170 | .data(&df) |
| 171 | .x("x") |
| 172 | .y("y1") |
| 173 | .additional_lines(vec!["y2"]) |
| 174 | .build(); |
| 175 | let svg = plot.to_svg(); |
| 176 | assert!(!svg.is_empty()); |
| 177 | } |
| 178 | |
| 179 | #[test] |
| 180 | fn bar_plot_renders_to_svg() { |