]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
buildperf: Tweak tooltip positioning for usability
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 28 Mar 2025 22:12:44 +0000 (22:12 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 28 Mar 2025 22:14:12 +0000 (22:14 +0000)
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

index 5e4f4be336f322852711502d8c760b49fea34d92..86435273cf77553316dad136e99deffc50621a68 100644 (file)
@@ -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