diff --git a/examples/atp.rs b/examples/atp.rs index da2785b..363b3c4 100644 --- a/examples/atp.rs +++ b/examples/atp.rs @@ -126,7 +126,7 @@ fn main() { chart .draw_series(LineSeries::new(data, &color)) .unwrap() - .label(format!("{}", player)) + .label(player) .legend(move |(x, y)| PathElement::new(vec![(x, y), (x + 20, y)], &color)); }