Sets the colors for each bar (one color per bar, matched by index)
(&mut self, colors: &[&str])
| 218 | |
| 219 | /// Sets the colors for each bar (one color per bar, matched by index) |
| 220 | pub fn set_colors(&mut self, colors: &[&str]) -> &mut Self { |
| 221 | self.colors = colors.iter().map(|color| color.to_string()).collect(); |
| 222 | self |
| 223 | } |
| 224 | |
| 225 | /// Sets the width of each bar (relative to the default unit spacing) |
| 226 | pub fn set_width(&mut self, width: f64) -> &mut Self { |
no outgoing calls