This is an automated email from the ASF dual-hosted git repository.

gongchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git


The following commit(s) were added to refs/heads/master by this push:
     new 529d161478 [improve] Optimize Tooltip display logic and support 
scrollable content (#3941)
529d161478 is described below

commit 529d161478284378e9ed9d8c1e276246808aba7b
Author: KOYR <[email protected]>
AuthorDate: Sun Jan 4 23:24:46 2026 +0800

    [improve] Optimize Tooltip display logic and support scrollable content 
(#3941)
    
    Signed-off-by: Tomsun28 <[email protected]>
    Co-authored-by: Tomsun28 <[email protected]>
    Co-authored-by: Copilot <[email protected]>
---
 .../monitor/monitor-data-chart/monitor-data-chart.component.ts     | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 
a/web-app/src/app/routes/monitor/monitor-data-chart/monitor-data-chart.component.ts
 
b/web-app/src/app/routes/monitor/monitor-data-chart/monitor-data-chart.component.ts
index 09c2022c59..9b7b2b9ebf 100644
--- 
a/web-app/src/app/routes/monitor/monitor-data-chart/monitor-data-chart.component.ts
+++ 
b/web-app/src/app/routes/monitor/monitor-data-chart/monitor-data-chart.component.ts
@@ -201,7 +201,12 @@ export class MonitorDataChartComponent implements OnInit, 
OnDestroy {
         }
       },
       tooltip: {
-        trigger: 'axis'
+        trigger: 'axis',
+        extraCssText: 'max-width: 580px; max-height: 400px; overflow-y: auto;',
+        enterable: true,
+        renderMode: 'html',
+        appendToBody: true,
+        confine: false
       },
       grid: {
         left: '2',


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to