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

zhaoyanan pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-shardingsphere-benchmark.git

commit 77832f4a0e836cb05cc142a4b36162ccb3fbf08b
Author: wqzwh <[email protected]>
AuthorDate: Fri Sep 27 17:40:11 2019 +0800

    refactor:optimization tooltip position
---
 web/src/utils/line.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/web/src/utils/line.js b/web/src/utils/line.js
index bf30a09..7211347 100644
--- a/web/src/utils/line.js
+++ b/web/src/utils/line.js
@@ -25,6 +25,11 @@ const getLineOptions = (name, xAxis, legend, series) => {
         </div>`
         }
         return html
+      },
+      position(pos, params, dom, rect, size) {
+        const obj = { top: 60 }
+        obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 5
+        return obj
       }
     },
     xAxis: {

Reply via email to