fix: graphs clipping into the bottom of the box
this isn't the greatest solution, but it works as expected
This commit is contained in:
parent
fa0284f165
commit
9d0a6fdd07
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ impl canvas::Program<app::Message, Theme, Renderer> for Graph {
|
|||
&canvas::Path::new(|builder| {
|
||||
for (index, value) in self.timeline.iter().enumerate() {
|
||||
let x = index as f32 / self.timeline.len() as f32 * bounds.width;
|
||||
let y = bounds.height - value / 100. * bounds.height;
|
||||
let y = bounds.height - value / 100. * bounds.height - 1.;
|
||||
builder.line_to(Point::new(x, y))
|
||||
}
|
||||
}),
|
||||
|
|
|
|||
Loading…
Reference in a new issue