From 4c545165ebaf9a2cddff181ca416c37d774fc4e5 Mon Sep 17 00:00:00 2001 From: Floyd Wang Date: Fri, 15 Aug 2025 17:09:41 +0800 Subject: [PATCH] plot: Fix the point scale cannot selecting the last point (#1143) --- crates/ui/src/plot/scale/point.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui/src/plot/scale/point.rs b/crates/ui/src/plot/scale/point.rs index b48fbed0..49ff821c 100644 --- a/crates/ui/src/plot/scale/point.rs +++ b/crates/ui/src/plot/scale/point.rs @@ -26,7 +26,7 @@ where .into_option() .map_or(0., |(min, max)| max - min); - range_diff / (len - 1) as f32 + range_diff / (len as f32) }; Self { domain, range_tick }