diff --git a/crates/ui/src/chart/bar_chart.rs b/crates/ui/src/chart/bar_chart.rs index 33487bbe..21036950 100644 --- a/crates/ui/src/chart/bar_chart.rs +++ b/crates/ui/src/chart/bar_chart.rs @@ -154,7 +154,9 @@ where if let Some(label) = self.label.as_ref() { let label = label.clone(); - bar = bar.label(move |d, p| vec![Text::new(label(d), p, label_color)]); + bar = bar.label(move |d, p| { + vec![Text::new(label(d), p, label_color).align(TextAlign::Center)] + }); } bar.paint(&bounds, window, cx);