From 3d7d72d89a60967ff866ae8a68351ef564b1d22c Mon Sep 17 00:00:00 2001 From: Ovilia Date: Fri, 2 Feb 2024 14:29:36 +0800 Subject: [PATCH 1/5] doc: add doc for apache/echarts#18436 --- en/option/component/tooltip.md | 16 ++++++++++++++++ zh/option/component/tooltip.md | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/en/option/component/tooltip.md b/en/option/component/tooltip.md index cae1ddf44..81676246a 100644 --- a/en/option/component/tooltip.md +++ b/en/option/component/tooltip.md @@ -199,6 +199,8 @@ Useful when tooltip is cut because of `'overflow: hidden'` set on outer dom of c version = "4.7.0" ) }} +(DEPRECATED, use [appendTo](~tooltip.appendTo) instead.) + Whether to append the tooltip DOM element as a child of the `` of the HTML page, when using [renderMode](~tooltip.renderMode) `'html'`. By default `false`, means that the tooltip DOM element will be one of a descendant of its echarts DOM container. But that means that the tooltip might be cut when overflow the container if some of the ancestors DOM element of the echarts container are styled with `overflow: hidden`. This case could also be resolved by setting [tooltip.confine](~tooltip.confine), but it might not suitable for all scenarios. @@ -207,6 +209,20 @@ Here we provide `appendToBody: true` to auto append the tooltip element to `