You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2018/09/11 12:50:44 UTC
[incubator-echarts] branch release updated: fix: lift tooltip upper
than axis pointer for rich tooltip.
This is an automated email from the ASF dual-hosted git repository.
sushuang pushed a commit to branch release
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
The following commit(s) were added to refs/heads/release by this push:
new e9b7a2f fix: lift tooltip upper than axis pointer for rich tooltip.
e9b7a2f is described below
commit e9b7a2fe0603dd7e02382eeda2726463ded31c3d
Author: sushuang <su...@gmail.com>
AuthorDate: Tue Sep 11 20:32:16 2018 +0800
fix: lift tooltip upper than axis pointer for rich tooltip.
---
src/component/tooltip/TooltipModel.js | 2 +-
src/component/tooltip/TooltipRichContent.js | 4 +---
test/tooltip-rich.html | 5 ++++-
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/component/tooltip/TooltipModel.js b/src/component/tooltip/TooltipModel.js
index 27047be..0b8c77e 100644
--- a/src/component/tooltip/TooltipModel.js
+++ b/src/component/tooltip/TooltipModel.js
@@ -28,7 +28,7 @@ export default echarts.extendComponentModel({
defaultOption: {
zlevel: 0,
- z: 8,
+ z: 60,
show: true,
diff --git a/src/component/tooltip/TooltipRichContent.js b/src/component/tooltip/TooltipRichContent.js
index 8131b65..6f2b0f3 100644
--- a/src/component/tooltip/TooltipRichContent.js
+++ b/src/component/tooltip/TooltipRichContent.js
@@ -26,10 +26,8 @@ import Text from 'zrender/src/graphic/Text';
* @constructor
*/
function TooltipRichContent(api) {
- // this.el = new Group();
- // var zr = this._zr = api.getZr();
- // zr.add(this.el);
+ this._zr = api.getZr();
this._show = false;
diff --git a/test/tooltip-rich.html b/test/tooltip-rich.html
index 982962b..89844c4 100644
--- a/test/tooltip-rich.html
+++ b/test/tooltip-rich.html
@@ -58,7 +58,10 @@ under the License.
tooltip: {
show: true,
renderMode: 'richText',
- trigger: 'axis'
+ enterable: true,
+ // position: [100, 100],
+ trigger: 'axis',
+ z: 100
},
yAxis: {
type: 'value'
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org