Set an label for the series.
(mut self, label: impl Into<String>)
| 385 | |
| 386 | /// Set an label for the series. |
| 387 | pub fn with_label(mut self, label: impl Into<String>) -> Self { |
| 388 | let l = label.into(); |
| 389 | if !l.is_empty() { |
| 390 | self.label = Some(l); |
| 391 | } |
| 392 | self |
| 393 | } |
| 394 | |
| 395 | /// Set the marker style for the series. |
| 396 | pub fn with_marker_style(mut self, style: MarkerStyle) -> Self { |