This is an automated email from the ASF dual-hosted git repository. shenyi pushed a commit to branch next in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git
The following commit(s) were added to refs/heads/next by this push: new 13a6cf1 Feat(tooltip): add 'order' for tooltip new db94a52 Merge pull request #140 from susiwen8/tooltip-order 13a6cf1 is described below commit 13a6cf1e808878a8c1da4e857c7f517bb011a0bd Author: susiwen8 <susiw...@gmail.com> AuthorDate: Sat Nov 14 17:01:06 2020 +0800 Feat(tooltip): add 'order' for tooltip --- en/option/component/tooltip.md | 28 ++++++++++++++++++++++++++++ zh/option/component/tooltip.md | 28 ++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/en/option/component/tooltip.md b/en/option/component/tooltip.md index 4e04c64..a7120a4 100644 --- a/en/option/component/tooltip.md +++ b/en/option/component/tooltip.md @@ -218,3 +218,31 @@ The transition duration of tooltip's animation, in seconds. When it is set to be prefix = '#' ) }} +## order(string) = 'seriesAsc' + +<ExampleUIControlEnum options="seriesAsc,seriesDesc,valueAsc,valueDesc" default="seriesAsc" /> + + +{{ use: partial-version( + version = "5.0.0" +) }} + +Tooltip order for multiple series. Defaults is `'seriesAsc'`. + +Conditions to order tooltip. Options: + ++ `'seriesAsc'` + + Base on series declaration, ascending order tooltip. + ++ `'seriesDesc'` + + Base on series declaration, descending order tooltip. + ++ `'valueAsc'` + + Base on value, ascending order tooltip, only for numberic value. + ++ `'valueDesc'` + + Base on value, descending order tooltip, only for numberic value. diff --git a/zh/option/component/tooltip.md b/zh/option/component/tooltip.md index 93d2289..8ffe84d 100644 --- a/zh/option/component/tooltip.md +++ b/zh/option/component/tooltip.md @@ -218,3 +218,31 @@ const option = { prefix = '#' ) }} +## order(string) = 'seriesAsc' + +<ExampleUIControlEnum options="seriesAsc,seriesDesc,valueAsc,valueDesc" default="seriesAsc" /> + +{{ use: partial-version( + version = "5.0.0" +) }} + +多系列提示框浮层排列顺序。默认值为 `'seriesAsc'` + +提示框排列顺序可选值: + ++ `'seriesAsc'` + + 根据系列声明, 升序排列。 + ++ `'seriesDesc'` + + 根据系列声明, 降序排列。 + ++ `'valueAsc'` + + 根据数据值, 升序排列。 + ++ `'valueDesc'` + + 根据数据值, 降序排列。 + --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org