plot: Fix incorrect tooltip dot left position (#919)

This commit is contained in:
Floyd Wang 2025-06-05 16:25:28 +08:00 committed by GitHub
parent ecfa6b8451
commit 9afe0063a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -109,7 +109,7 @@ impl RenderOnce for Dot {
.border_1()
.border_color(self.stroke)
.bg(self.fill)
.left(self.point.x)
.left(self.point.x - self.size / 2.)
.top(self.point.y - self.size / 2.)
}
}