diff mbox series

[2/2] buildperf: Tweak tooltip positioning for usability

Message ID 20250328221345.1462122-2-richard.purdie@linuxfoundation.org
State Accepted, archived
Commit a090076e42eb9b41da55fc01ccbbb68f9b8a8cb8
Headers show
Series [1/2] buildperf: Avoid step usage in performance line graphs | expand

Commit Message

Richard Purdie March 28, 2025, 10:13 p.m. UTC
The tooltop contains a key hyperlink to make the graphs usable. Make
it easier to click on the link by removing the space between the data
point and the tooltip.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 scripts/lib/build_perf/html/measurement_chart.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/scripts/lib/build_perf/html/measurement_chart.html b/scripts/lib/build_perf/html/measurement_chart.html
index 5e4f4be336f..86435273cf7 100644
--- a/scripts/lib/build_perf/html/measurement_chart.html
+++ b/scripts/lib/build_perf/html/measurement_chart.html
@@ -40,7 +40,7 @@ 
       trigger: 'axis',
       enterable: true,
       position: function (point, params, dom, rect, size) {
-        return [point[0]+20, '10%'];
+        return [point[0], '0%'];
       },
       formatter: function (param) {
         const value = param[0].value[1]
@@ -93,7 +93,7 @@ 
       trigger: 'axis',
       enterable: true,
       position: function (point, params, dom, rect, size) {
-        return [point[0]+20, '10%'];
+        return [point[0], '0%'];
       },
       formatter: function (param) {
         const value = param[0].value