chart tweaks for windows (#2626)

This commit is contained in:
Darren Schroeder 2020-10-01 14:48:57 -05:00 committed by GitHub
parent e4c6336bd4
commit f0b7ab5ecc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,7 +123,7 @@ impl<'a> BarChart<'a> {
ui.draw(|f| {
let chunks = Layout::default()
.direction(Direction::Vertical)
.margin(2)
.margin(0)
.constraints([Constraint::Percentage(100)].as_ref())
.split(f.size());
@ -134,6 +134,7 @@ impl<'a> BarChart<'a> {
.bar_style(Style::default().fg(Color::Green))
.value_style(
Style::default()
.fg(Color::Black)
.bg(Color::Green)
.add_modifier(Modifier::BOLD),
);