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 2019/09/16 14:18:25 UTC

[incubator-echarts-website] branch asf-site updated (23b3c53 -> 41e9b06)

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

sushuang pushed a change to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-website.git.


    from 23b3c53  re-build.
     new 0fd22d3  update release guide
     new 41e9b06  release 4.3.0

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 README.md                                          |    36 +-
 en/404.html                                        |     2 +-
 en/api.html                                        |     8 +-
 en/builder.html                                    |     2 +-
 .../src/echarts/chart/chord/chordCircularLayout.js |     6 -
 .../src/echarts/chart/heatmap/HeatmapLayer.js      |     8 -
 .../src/echarts/chart/sankey/SankeySeries.js       |     5 -
 en/builder/src/echarts/chart/sankey/SankeyView.js  |     5 -
 .../src/echarts/chart/sankey/sankeyAction.js       |     5 -
 .../src/echarts/chart/sankey/sankeyLayout.js       |     5 -
 .../src/echarts/chart/sankey/sankeyVisual.js       |     5 -
 .../echarts/chart/themeRiver/ThemeRiverSeries.js   |     5 -
 .../src/echarts/chart/themeRiver/ThemeRiverView.js |     5 -
 .../echarts/chart/themeRiver/themeRiverLayout.js   |     5 -
 .../echarts/chart/themeRiver/themeRiverVisual.js   |     5 -
 en/builder/src/echarts/chart/tree/TreeSeries.js    |     5 -
 en/builder/src/echarts/chart/tree/TreeView.js      |     5 -
 en/builder/src/echarts/chart/tree/treeAction.js    |     5 -
 en/builder/src/echarts/component/brush/selector.js |    50 +-
 en/builder/src/echarts/component/calendar.js       |     5 -
 .../echarts/component/toolbox/feature/DataView.js  |    17 +-
 .../echarts/component/tooltip/TooltipContent.js    |     4 +-
 en/builder/src/echarts/data/Graph.js               |     7 -
 en/builder/src/echarts/helper.js                   |     1 -
 en/builder/src/echarts/util/KDTree.js              |     7 -
 en/builder/src/echarts/util/graphic.js             |    88 +
 en/builder/src/echarts/util/quickSelect.js         |     3 -
 en/changelog.html                                  |     2 +-
 en/cheat-sheet.html                                |     2 +-
 en/coding-standard.html                            |     2 +-
 en/committers.html                                 |     2 +-
 en/dependencies.html                               |     2 +-
 en/dist/echarts-en.common.js                       |   105 +-
 en/dist/echarts-en.common.min.js                   |     2 +-
 en/dist/echarts-en.js                              |   231 +-
 en/dist/echarts-en.js.map                          |     2 +-
 en/dist/echarts-en.min.js                          |     2 +-
 en/dist/echarts-en.simple.js                       |    84 +
 en/dist/echarts-en.simple.min.js                   |     2 +-
 en/dist/echarts.common.js                          |   105 +-
 en/dist/echarts.common.min.js                      |     2 +-
 en/dist/echarts.js                                 |   231 +-
 en/dist/echarts.js.map                             |     2 +-
 en/dist/echarts.min.js                             |     2 +-
 en/dist/echarts.simple.js                          |    84 +
 en/dist/echarts.simple.min.js                      |     2 +-
 en/dist/extension/dataTool.js                      |     8 +-
 en/dist/extension/dataTool.js.map                  |     2 +-
 en/download-extension.html                         |     2 +-
 en/download-map.html                               |     2 +-
 en/download-theme.html                             |     2 +-
 en/download.html                                   |     2 +-
 en/faq.html                                        |     2 +-
 en/feature.html                                    |     2 +-
 en/index.html                                      |     4 +-
 en/js/download.js                                  |     2 +-
 en/maillist.html                                   |     2 +-
 en/option-gl.html                                  |     8 +-
 en/option.html                                     |     8 +-
 en/option3.html                                    |     2 +-
 en/tutorial.html                                   |     8 +-
 examples/en/editor.html                            |     4 +-
 examples/en/index.html                             |     4 +-
 examples/en/view.html                              |     4 +-
 examples/vendors/echarts/echarts.js                | 32758 ++++++++++---------
 examples/vendors/echarts/echarts.min.js            |     2 +-
 examples/vendors/echarts/extension/bmap.min.js     |     2 +-
 examples/vendors/echarts/extension/dataTool.js     |    15 +-
 examples/vendors/echarts/extension/dataTool.js.map |     2 +-
 examples/vendors/echarts/extension/dataTool.min.js |     2 +-
 examples/zh/editor.html                            |     4 +-
 examples/zh/index.html                             |     4 +-
 examples/zh/view.html                              |     4 +-
 js/download.js                                     |     2 +-
 zh/404.html                                        |     2 +-
 zh/api.html                                        |     8 +-
 zh/builder.html                                    |     2 +-
 .../src/echarts/chart/chord/chordCircularLayout.js |     6 -
 .../src/echarts/chart/heatmap/HeatmapLayer.js      |     8 -
 .../src/echarts/chart/sankey/SankeySeries.js       |     5 -
 zh/builder/src/echarts/chart/sankey/SankeyView.js  |     5 -
 .../src/echarts/chart/sankey/sankeyAction.js       |     5 -
 .../src/echarts/chart/sankey/sankeyLayout.js       |     5 -
 .../src/echarts/chart/sankey/sankeyVisual.js       |     5 -
 .../echarts/chart/themeRiver/ThemeRiverSeries.js   |     5 -
 .../src/echarts/chart/themeRiver/ThemeRiverView.js |     5 -
 .../echarts/chart/themeRiver/themeRiverLayout.js   |     5 -
 .../echarts/chart/themeRiver/themeRiverVisual.js   |     5 -
 zh/builder/src/echarts/chart/tree/TreeSeries.js    |     5 -
 zh/builder/src/echarts/chart/tree/TreeView.js      |     5 -
 zh/builder/src/echarts/chart/tree/treeAction.js    |     5 -
 zh/builder/src/echarts/component/brush/selector.js |    50 +-
 zh/builder/src/echarts/component/calendar.js       |     5 -
 .../echarts/component/toolbox/feature/DataView.js  |    17 +-
 .../echarts/component/tooltip/TooltipContent.js    |     4 +-
 zh/builder/src/echarts/data/Graph.js               |     7 -
 zh/builder/src/echarts/helper.js                   |     1 -
 zh/builder/src/echarts/util/KDTree.js              |     7 -
 zh/builder/src/echarts/util/graphic.js             |    88 +
 zh/builder/src/echarts/util/quickSelect.js         |     3 -
 zh/builder3.html                                   |     2 +-
 zh/changelog.html                                  |     2 +-
 zh/cheat-sheet.html                                |     2 +-
 zh/coding-standard.html                            |     2 +-
 zh/committers.html                                 |     2 +-
 zh/demo.html                                       |     2 +-
 zh/dependencies.html                               |     2 +-
 zh/dist/echarts-en.common.js                       |   105 +-
 zh/dist/echarts-en.common.min.js                   |     2 +-
 zh/dist/echarts-en.js                              |   231 +-
 zh/dist/echarts-en.js.map                          |     2 +-
 zh/dist/echarts-en.min.js                          |     2 +-
 zh/dist/echarts-en.simple.js                       |    84 +
 zh/dist/echarts-en.simple.min.js                   |     2 +-
 zh/dist/echarts.common.js                          |   105 +-
 zh/dist/echarts.common.min.js                      |     2 +-
 zh/dist/echarts.js                                 |   231 +-
 zh/dist/echarts.js.map                             |     2 +-
 zh/dist/echarts.min.js                             |     2 +-
 zh/dist/echarts.simple.js                          |    84 +
 zh/dist/echarts.simple.min.js                      |     2 +-
 zh/dist/extension/dataTool.js                      |     8 +-
 zh/dist/extension/dataTool.js.map                  |     2 +-
 zh/download-extension.html                         |     2 +-
 zh/download-map.html                               |     2 +-
 zh/download-theme.html                             |     2 +-
 zh/download.html                                   |     2 +-
 zh/download3.html                                  |     2 +-
 zh/examples.html                                   |     2 +-
 zh/faq.html                                        |     2 +-
 zh/feature.html                                    |     2 +-
 zh/index.html                                      |     4 +-
 zh/js/download.js                                  |     2 +-
 zh/maillist.html                                   |     2 +-
 zh/option-gl.html                                  |     8 +-
 zh/option.html                                     |     8 +-
 zh/option3.html                                    |     8 +-
 zh/spreadsheet.html                                |     8 +-
 zh/tutorial.html                                   |     8 +-
 139 files changed, 18261 insertions(+), 16984 deletions(-)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[incubator-echarts-website] 01/02: update release guide

Posted by su...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sushuang pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-website.git

commit 0fd22d3e621dc255e6894ad752793df870a6208c
Author: sushuang <su...@gmail.com>
AuthorDate: Mon Sep 16 21:56:33 2019 +0800

    update release guide
---
 README.md | 36 +++++++++++++++++++++++++-----------
 1 file changed, 25 insertions(+), 11 deletions(-)

diff --git a/README.md b/README.md
index f694d41..1ed8651 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
 
 ## Setup
 
-Clone this project, alone with [echarts](https://github.com/apache/incubator-echarts), [zrender](https://github.com/ecomfe/zrender), [echarts-www](https://github.com/ecomfe/echarts-www), [echarts-examples](https://github.com/ecomfe/echarts-examples), [echarts-doc](https://github.com/ecomfe/echarts-doc) under the same directory.
+Clone this project, alone with [echarts](https://github.com/apache/incubator-echarts), [echarts-www](https://github.com/ecomfe/echarts-www), [echarts-examples](https://github.com/ecomfe/echarts-examples), [echarts-doc](https://github.com/ecomfe/echarts-doc) under the same directory.
 
 
 ## Debug Locally
@@ -34,16 +34,23 @@ export ECHARTS_BASE="/your/local/base/dir/path/of/these/projects"
 ```
 
 
+
 ### If the built-in echarts dist needs to be upated
 
-**Copy echarts dist code**
+**Prepare echarts source code**
 ```shell
-cp -r ${ECHARTS_BASE}/echarts/dist/* ${ECHARTS_BASE}/echarts-www/dist
-ll ${ECHARTS_BASE}/echarts-www/dist
+cd ${ECHARTS_BASE}/echarts
+git checkout release # Make sure in `release branch`
+git pull
+git status # Make sure there is no modification in `src`.
 ```
 
-**Update the source code of `custom builder`:**
+**Copy echarts dist files and source code for `custom builder`:**
 ```shell
+# Copy dist files:
+cp -r ${ECHARTS_BASE}/echarts/dist/* ${ECHARTS_BASE}/echarts-www/dist
+ls -alF ${ECHARTS_BASE}/echarts-www/dist
+# Copy source code:
 rm -r ${ECHARTS_BASE}/echarts-www/builder/src/echarts
 rm -r ${ECHARTS_BASE}/echarts-www/builder/src/zrender
 cp -r ${ECHARTS_BASE}/echarts/src ${ECHARTS_BASE}/echarts-www/builder/src/echarts
@@ -55,11 +62,11 @@ ${ECHARTS_BASE}/echarts-www/builder/pre/removeDEV.js # remove __DEV__
 
 **Update the version number of echarts in `echarts-www`.**
 ```shell
-cd ${ECHARTS_BASE}/echarts-www/
 code ${ECHARTS_BASE}/echarts-www/config/common.js
 # Update the version manually. Then:
+cd ${ECHARTS_BASE}/echarts-www/
 ./node_modules/.bin/gulp sourceVersion
-cat builder/echarts.html | grep urlArgs
+cat builder/echarts.html | grep urlArgs # Check
 ```
 
 ### If the release download list needs to be updated
@@ -81,7 +88,7 @@ node build-example.js
 **If the built-in echarts needs to be updated**
 ```shell
 cd ${ECHARTS_BASE}/echarts-examples
-sh update-echarts.sh
+sh update-echarts.sh --only-copy-dist
 ```
 
 
@@ -104,9 +111,9 @@ Ensure "echarts-doc" is on the correct git branch (`relase` branch).
 ```shell
 sh ${ECHARTS_BASE}/echarts-doc/release.sh --env asf
 # sh ${ECHARTS_BASE}/echarts-doc/release.sh --env echartsjs
-ll ${ECHARTS_BASE}/echarts-www/documents/cn
-ll ${ECHARTS_BASE}/echarts-www/documents/en
-ll ${ECHARTS_BASE}/echarts-www/documents/asset/
+ls -alF ${ECHARTS_BASE}/echarts-www/documents/cn
+ls -alF ${ECHARTS_BASE}/echarts-www/documents/en
+ls -alF ${ECHARTS_BASE}/echarts-www/documents/asset/
 ```
 
 **Build `echarts-www`**
@@ -115,8 +122,15 @@ sh ${ECHARTS_BASE}/echarts-www/release.sh --env asf
 # sh ${ECHARTS_BASE}/echarts-www/release.sh --env echartsjs
 ```
 
+**Clear**
+```shell
+rm -r ${ECHARTS_BASE}/echarts-www/release
+rm ${ECHARTS_BASE}/echarts-www/echarts-www.zip
+```
+
 Then commit and push to `asf-site` branch.
 
 Then initiate a building job at [https://gitbox.apache.org/setup/resync.cgi](https://gitbox.apache.org/setup/resync.cgi) by searching `incubator-echarts-website`.
 
 Then wait for several minutes and Website should be generated at [https://echarts.apache.org/](https://echarts.apache.org/).
+


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[incubator-echarts-website] 02/02: release 4.3.0

Posted by su...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sushuang pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-website.git

commit 41e9b069ef2ab866038fe0717f1d624442138530
Author: sushuang <su...@gmail.com>
AuthorDate: Mon Sep 16 22:18:05 2019 +0800

    release 4.3.0
---
 en/404.html                                        |     2 +-
 en/api.html                                        |     8 +-
 en/builder.html                                    |     2 +-
 .../src/echarts/chart/chord/chordCircularLayout.js |     6 -
 .../src/echarts/chart/heatmap/HeatmapLayer.js      |     8 -
 .../src/echarts/chart/sankey/SankeySeries.js       |     5 -
 en/builder/src/echarts/chart/sankey/SankeyView.js  |     5 -
 .../src/echarts/chart/sankey/sankeyAction.js       |     5 -
 .../src/echarts/chart/sankey/sankeyLayout.js       |     5 -
 .../src/echarts/chart/sankey/sankeyVisual.js       |     5 -
 .../echarts/chart/themeRiver/ThemeRiverSeries.js   |     5 -
 .../src/echarts/chart/themeRiver/ThemeRiverView.js |     5 -
 .../echarts/chart/themeRiver/themeRiverLayout.js   |     5 -
 .../echarts/chart/themeRiver/themeRiverVisual.js   |     5 -
 en/builder/src/echarts/chart/tree/TreeSeries.js    |     5 -
 en/builder/src/echarts/chart/tree/TreeView.js      |     5 -
 en/builder/src/echarts/chart/tree/treeAction.js    |     5 -
 en/builder/src/echarts/component/brush/selector.js |    50 +-
 en/builder/src/echarts/component/calendar.js       |     5 -
 .../echarts/component/toolbox/feature/DataView.js  |    17 +-
 .../echarts/component/tooltip/TooltipContent.js    |     4 +-
 en/builder/src/echarts/data/Graph.js               |     7 -
 en/builder/src/echarts/helper.js                   |     1 -
 en/builder/src/echarts/util/KDTree.js              |     7 -
 en/builder/src/echarts/util/graphic.js             |    88 +
 en/builder/src/echarts/util/quickSelect.js         |     3 -
 en/changelog.html                                  |     2 +-
 en/cheat-sheet.html                                |     2 +-
 en/coding-standard.html                            |     2 +-
 en/committers.html                                 |     2 +-
 en/dependencies.html                               |     2 +-
 en/dist/echarts-en.common.js                       |   105 +-
 en/dist/echarts-en.common.min.js                   |     2 +-
 en/dist/echarts-en.js                              |   231 +-
 en/dist/echarts-en.js.map                          |     2 +-
 en/dist/echarts-en.min.js                          |     2 +-
 en/dist/echarts-en.simple.js                       |    84 +
 en/dist/echarts-en.simple.min.js                   |     2 +-
 en/dist/echarts.common.js                          |   105 +-
 en/dist/echarts.common.min.js                      |     2 +-
 en/dist/echarts.js                                 |   231 +-
 en/dist/echarts.js.map                             |     2 +-
 en/dist/echarts.min.js                             |     2 +-
 en/dist/echarts.simple.js                          |    84 +
 en/dist/echarts.simple.min.js                      |     2 +-
 en/dist/extension/dataTool.js                      |     8 +-
 en/dist/extension/dataTool.js.map                  |     2 +-
 en/download-extension.html                         |     2 +-
 en/download-map.html                               |     2 +-
 en/download-theme.html                             |     2 +-
 en/download.html                                   |     2 +-
 en/faq.html                                        |     2 +-
 en/feature.html                                    |     2 +-
 en/index.html                                      |     4 +-
 en/js/download.js                                  |     2 +-
 en/maillist.html                                   |     2 +-
 en/option-gl.html                                  |     8 +-
 en/option.html                                     |     8 +-
 en/option3.html                                    |     2 +-
 en/tutorial.html                                   |     8 +-
 examples/en/editor.html                            |     4 +-
 examples/en/index.html                             |     4 +-
 examples/en/view.html                              |     4 +-
 examples/vendors/echarts/echarts.js                | 32758 ++++++++++---------
 examples/vendors/echarts/echarts.min.js            |     2 +-
 examples/vendors/echarts/extension/bmap.min.js     |     2 +-
 examples/vendors/echarts/extension/dataTool.js     |    15 +-
 examples/vendors/echarts/extension/dataTool.js.map |     2 +-
 examples/vendors/echarts/extension/dataTool.min.js |     2 +-
 examples/zh/editor.html                            |     4 +-
 examples/zh/index.html                             |     4 +-
 examples/zh/view.html                              |     4 +-
 js/download.js                                     |     2 +-
 zh/404.html                                        |     2 +-
 zh/api.html                                        |     8 +-
 zh/builder.html                                    |     2 +-
 .../src/echarts/chart/chord/chordCircularLayout.js |     6 -
 .../src/echarts/chart/heatmap/HeatmapLayer.js      |     8 -
 .../src/echarts/chart/sankey/SankeySeries.js       |     5 -
 zh/builder/src/echarts/chart/sankey/SankeyView.js  |     5 -
 .../src/echarts/chart/sankey/sankeyAction.js       |     5 -
 .../src/echarts/chart/sankey/sankeyLayout.js       |     5 -
 .../src/echarts/chart/sankey/sankeyVisual.js       |     5 -
 .../echarts/chart/themeRiver/ThemeRiverSeries.js   |     5 -
 .../src/echarts/chart/themeRiver/ThemeRiverView.js |     5 -
 .../echarts/chart/themeRiver/themeRiverLayout.js   |     5 -
 .../echarts/chart/themeRiver/themeRiverVisual.js   |     5 -
 zh/builder/src/echarts/chart/tree/TreeSeries.js    |     5 -
 zh/builder/src/echarts/chart/tree/TreeView.js      |     5 -
 zh/builder/src/echarts/chart/tree/treeAction.js    |     5 -
 zh/builder/src/echarts/component/brush/selector.js |    50 +-
 zh/builder/src/echarts/component/calendar.js       |     5 -
 .../echarts/component/toolbox/feature/DataView.js  |    17 +-
 .../echarts/component/tooltip/TooltipContent.js    |     4 +-
 zh/builder/src/echarts/data/Graph.js               |     7 -
 zh/builder/src/echarts/helper.js                   |     1 -
 zh/builder/src/echarts/util/KDTree.js              |     7 -
 zh/builder/src/echarts/util/graphic.js             |    88 +
 zh/builder/src/echarts/util/quickSelect.js         |     3 -
 zh/builder3.html                                   |     2 +-
 zh/changelog.html                                  |     2 +-
 zh/cheat-sheet.html                                |     2 +-
 zh/coding-standard.html                            |     2 +-
 zh/committers.html                                 |     2 +-
 zh/demo.html                                       |     2 +-
 zh/dependencies.html                               |     2 +-
 zh/dist/echarts-en.common.js                       |   105 +-
 zh/dist/echarts-en.common.min.js                   |     2 +-
 zh/dist/echarts-en.js                              |   231 +-
 zh/dist/echarts-en.js.map                          |     2 +-
 zh/dist/echarts-en.min.js                          |     2 +-
 zh/dist/echarts-en.simple.js                       |    84 +
 zh/dist/echarts-en.simple.min.js                   |     2 +-
 zh/dist/echarts.common.js                          |   105 +-
 zh/dist/echarts.common.min.js                      |     2 +-
 zh/dist/echarts.js                                 |   231 +-
 zh/dist/echarts.js.map                             |     2 +-
 zh/dist/echarts.min.js                             |     2 +-
 zh/dist/echarts.simple.js                          |    84 +
 zh/dist/echarts.simple.min.js                      |     2 +-
 zh/dist/extension/dataTool.js                      |     8 +-
 zh/dist/extension/dataTool.js.map                  |     2 +-
 zh/download-extension.html                         |     2 +-
 zh/download-map.html                               |     2 +-
 zh/download-theme.html                             |     2 +-
 zh/download.html                                   |     2 +-
 zh/download3.html                                  |     2 +-
 zh/examples.html                                   |     2 +-
 zh/faq.html                                        |     2 +-
 zh/feature.html                                    |     2 +-
 zh/index.html                                      |     4 +-
 zh/js/download.js                                  |     2 +-
 zh/maillist.html                                   |     2 +-
 zh/option-gl.html                                  |     8 +-
 zh/option.html                                     |     8 +-
 zh/option3.html                                    |     8 +-
 zh/spreadsheet.html                                |     8 +-
 zh/tutorial.html                                   |     8 +-
 138 files changed, 18236 insertions(+), 16973 deletions(-)

diff --git a/en/404.html b/en/404.html
index 8c49d3b..b2290ab 100644
--- a/en/404.html
+++ b/en/404.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
diff --git a/en/api.html b/en/api.html
index ab3d458..e091843 100644
--- a/en/api.html
+++ b/en/api.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
@@ -6,7 +6,7 @@
         + '@font-face {font-family:"noto-light";src:local("Microsoft Yahei");}';
     document.head.insertBefore(el, document.getElementById('font-hack'));
 }
-</script><title>ECharts Documentation</title><link rel="stylesheet" type="text/css" href="css/ecOption.css?_v_=1567956878240"><link rel="stylesheet" type="text/css" href="vendors/prettify/prettify.css"><link rel="stylesheet" type="text/css" href="vendors/perfect-scrollbar/0.6.8/css/perfect-scrollbar.min.css"><link rel="stylesheet" type="text/css" href="vendors/jquery-autocomplete/jquery.auto-complete.css"><link rel="stylesheet" type="text/css" href="vendors/twentytwenty/twentytwenty.css" [...]
+</script><title>ECharts Documentation</title><link rel="stylesheet" type="text/css" href="css/ecOption.css?_v_=1568642955357"><link rel="stylesheet" type="text/css" href="vendors/prettify/prettify.css"><link rel="stylesheet" type="text/css" href="vendors/perfect-scrollbar/0.6.8/css/perfect-scrollbar.min.css"><link rel="stylesheet" type="text/css" href="vendors/jquery-autocomplete/jquery.auto-complete.css"><link rel="stylesheet" type="text/css" href="vendors/twentytwenty/twentytwenty.css" [...]
 <!--[if (gt IE 8)|!(IE)]><body class="undefined"></body><![endif]--><div id="apache-banner"><div class="txt"><p>Apache ECharts is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator.</p><p>We are working on redirecting this Website to <a href="https://echarts.apache.org" target="_blank">https://echarts.apache.org</a>. You may visit our new official Website now.</p></div><a href="https://echarts.apache.org" target="_blank" onclick="lo [...]
     pageName: 'api',
     initHash: 'echarts',
@@ -28,7 +28,7 @@
 var vendorPath = '../vendors';
 
 define('globalArgs', extend({
-    version: '1567956878240',
+    version: '1568642955357',
     basePath: './',
     // Schema url is added by each doc page
     schemaUrl: '',
@@ -55,7 +55,7 @@ require.config({
         hasher: vendorPath + '/hasher/1.2.0/hasher.min',
         perfectScrollbar: vendorPath + '/perfect-scrollbar/0.6.8/js/perfect-scrollbar'
     },
-    urlArgs: '_v_=1567956878240'
+    urlArgs: '_v_=1568642955357'
 });
 
 require(['docTool/main'], function (main) {
diff --git a/en/builder.html b/en/builder.html
index 69ecff0..4fe69c1 100644
--- a/en/builder.html
+++ b/en/builder.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
diff --git a/en/builder/src/echarts/chart/chord/chordCircularLayout.js b/en/builder/src/echarts/chart/chord/chordCircularLayout.js
index b781393..0e8b8d3 100644
--- a/en/builder/src/echarts/chart/chord/chordCircularLayout.js
+++ b/en/builder/src/echarts/chart/chord/chordCircularLayout.js
@@ -16,12 +16,6 @@
 * specific language governing permissions and limitations
 * under the License.
 */
-
-/**
- * Chord layout
- * @module echarts/chart/chord/chordCircularLayout
- * @author pissang(http://github.com/pissang)
- */
 import * as zrUtil from 'zrender/src/core/util';
 import { parsePercent } from '../../util/number';
 /**
diff --git a/en/builder/src/echarts/chart/heatmap/HeatmapLayer.js b/en/builder/src/echarts/chart/heatmap/HeatmapLayer.js
index 3fe50db..8b1bb81 100644
--- a/en/builder/src/echarts/chart/heatmap/HeatmapLayer.js
+++ b/en/builder/src/echarts/chart/heatmap/HeatmapLayer.js
@@ -18,14 +18,6 @@
 */
 
 /* global Uint8ClampedArray */
-
-/**
- * @file defines echarts Heatmap Chart
- * @author Ovilia (me@zhangwenli.com)
- * Inspired by https://github.com/mourner/simpleheat
- *
- * @module
- */
 import * as zrUtil from 'zrender/src/core/util';
 var GRADIENT_LEVELS = 256;
 /**
diff --git a/en/builder/src/echarts/chart/sankey/SankeySeries.js b/en/builder/src/echarts/chart/sankey/SankeySeries.js
index 890c80c..c85eb1a 100644
--- a/en/builder/src/echarts/chart/sankey/SankeySeries.js
+++ b/en/builder/src/echarts/chart/sankey/SankeySeries.js
@@ -16,11 +16,6 @@
 * specific language governing permissions and limitations
 * under the License.
 */
-
-/**
- * @file Get initial data and define sankey view's series model
- * @author Deqing Li(annong035@gmail.com)
- */
 import SeriesModel from '../../model/Series';
 import createGraphFromNodeEdge from '../helper/createGraphFromNodeEdge';
 import { encodeHTML } from '../../util/format';
diff --git a/en/builder/src/echarts/chart/sankey/SankeyView.js b/en/builder/src/echarts/chart/sankey/SankeyView.js
index a782499..c789196 100644
--- a/en/builder/src/echarts/chart/sankey/SankeyView.js
+++ b/en/builder/src/echarts/chart/sankey/SankeyView.js
@@ -16,11 +16,6 @@
 * specific language governing permissions and limitations
 * under the License.
 */
-
-/**
- * @file  The file used to draw sankey diagram.
- * @author  Deqing Li(annong035@gmail.com)
- */
 import * as graphic from '../../util/graphic';
 import * as echarts from '../../echarts';
 import * as zrUtil from 'zrender/src/core/util';
diff --git a/en/builder/src/echarts/chart/sankey/sankeyAction.js b/en/builder/src/echarts/chart/sankey/sankeyAction.js
index ac171cf..ae540f8 100644
--- a/en/builder/src/echarts/chart/sankey/sankeyAction.js
+++ b/en/builder/src/echarts/chart/sankey/sankeyAction.js
@@ -16,11 +16,6 @@
 * specific language governing permissions and limitations
 * under the License.
 */
-
-/**
- * @file The interactive action of sankey view
- * @author Deqing Li(annong035@gmail.com)
- */
 import * as echarts from '../../echarts';
 import '../helper/focusNodeAdjacencyAction';
 echarts.registerAction({
diff --git a/en/builder/src/echarts/chart/sankey/sankeyLayout.js b/en/builder/src/echarts/chart/sankey/sankeyLayout.js
index a8bbde9..84e7bca 100644
--- a/en/builder/src/echarts/chart/sankey/sankeyLayout.js
+++ b/en/builder/src/echarts/chart/sankey/sankeyLayout.js
@@ -16,11 +16,6 @@
 * specific language governing permissions and limitations
 * under the License.
 */
-
-/**
- * @file The layout algorithm of sankey diagram.
- * @author Deqing Li(annong035@gmail.com)
- */
 import * as layout from '../../util/layout';
 import * as zrUtil from 'zrender/src/core/util';
 import { groupData } from '../../util/model';
diff --git a/en/builder/src/echarts/chart/sankey/sankeyVisual.js b/en/builder/src/echarts/chart/sankey/sankeyVisual.js
index 8bb4ccf..45cfb8f 100644
--- a/en/builder/src/echarts/chart/sankey/sankeyVisual.js
+++ b/en/builder/src/echarts/chart/sankey/sankeyVisual.js
@@ -16,11 +16,6 @@
 * specific language governing permissions and limitations
 * under the License.
 */
-
-/**
- * @file Visual encoding for sankey view
- * @author  Deqing Li(annong035@gmail.com)
- */
 import VisualMapping from '../../visual/VisualMapping';
 import * as zrUtil from 'zrender/src/core/util';
 export default function (ecModel, payload) {
diff --git a/en/builder/src/echarts/chart/themeRiver/ThemeRiverSeries.js b/en/builder/src/echarts/chart/themeRiver/ThemeRiverSeries.js
index 2dd16a5..35a8b7c 100644
--- a/en/builder/src/echarts/chart/themeRiver/ThemeRiverSeries.js
+++ b/en/builder/src/echarts/chart/themeRiver/ThemeRiverSeries.js
@@ -16,11 +16,6 @@
 * specific language governing permissions and limitations
 * under the License.
 */
-
-/**
- * @file  Define the themeRiver view's series model
- * @author Deqing Li(annong035@gmail.com)
- */
 import SeriesModel from '../../model/Series';
 import createDimensions from '../../data/helper/createDimensions';
 import { getDimensionTypeByAxis } from '../../data/helper/dimensionHelper';
diff --git a/en/builder/src/echarts/chart/themeRiver/ThemeRiverView.js b/en/builder/src/echarts/chart/themeRiver/ThemeRiverView.js
index a496959..7b84e29 100644
--- a/en/builder/src/echarts/chart/themeRiver/ThemeRiverView.js
+++ b/en/builder/src/echarts/chart/themeRiver/ThemeRiverView.js
@@ -16,11 +16,6 @@
 * specific language governing permissions and limitations
 * under the License.
 */
-
-/**
- * @file  The file used to draw themeRiver view
- * @author  Deqing Li(annong035@gmail.com)
- */
 import * as echarts from '../../echarts';
 import { Polygon } from '../line/poly';
 import * as graphic from '../../util/graphic';
diff --git a/en/builder/src/echarts/chart/themeRiver/themeRiverLayout.js b/en/builder/src/echarts/chart/themeRiver/themeRiverLayout.js
index f60e0db..79fb47c 100644
--- a/en/builder/src/echarts/chart/themeRiver/themeRiverLayout.js
+++ b/en/builder/src/echarts/chart/themeRiver/themeRiverLayout.js
@@ -16,11 +16,6 @@
 * specific language governing permissions and limitations
 * under the License.
 */
-
-/**
- * @file  Using layout algorithm transform the raw data to layout information.
- * @author Deqing Li(annong035@gmail.com)
- */
 import * as zrUtil from 'zrender/src/core/util';
 import * as numberUtil from '../../util/number';
 export default function (ecModel, api) {
diff --git a/en/builder/src/echarts/chart/themeRiver/themeRiverVisual.js b/en/builder/src/echarts/chart/themeRiver/themeRiverVisual.js
index a78b591..e9ce012 100644
--- a/en/builder/src/echarts/chart/themeRiver/themeRiverVisual.js
+++ b/en/builder/src/echarts/chart/themeRiver/themeRiverVisual.js
@@ -16,11 +16,6 @@
 * specific language governing permissions and limitations
 * under the License.
 */
-
-/**
- * @file Visual encoding for themeRiver view
- * @author Deqing Li(annong035@gmail.com)
- */
 import { createHashMap } from 'zrender/src/core/util';
 export default function (ecModel) {
   ecModel.eachSeriesByType('themeRiver', function (seriesModel) {
diff --git a/en/builder/src/echarts/chart/tree/TreeSeries.js b/en/builder/src/echarts/chart/tree/TreeSeries.js
index d8e79a5..0f28625 100644
--- a/en/builder/src/echarts/chart/tree/TreeSeries.js
+++ b/en/builder/src/echarts/chart/tree/TreeSeries.js
@@ -16,11 +16,6 @@
 * specific language governing permissions and limitations
 * under the License.
 */
-
-/**
- * @file Create data struct and define tree view's series model
- * @author Deqing Li(annong035@gmail.com)
- */
 import SeriesModel from '../../model/Series';
 import Tree from '../../data/Tree';
 import { encodeHTML } from '../../util/format';
diff --git a/en/builder/src/echarts/chart/tree/TreeView.js b/en/builder/src/echarts/chart/tree/TreeView.js
index 8501ada..3f99cfe 100644
--- a/en/builder/src/echarts/chart/tree/TreeView.js
+++ b/en/builder/src/echarts/chart/tree/TreeView.js
@@ -16,11 +16,6 @@
 * specific language governing permissions and limitations
 * under the License.
 */
-
-/**
- * @file This file used to draw tree view.
- * @author Deqing Li(annong035@gmail.com)
- */
 import * as zrUtil from 'zrender/src/core/util';
 import * as graphic from '../../util/graphic';
 import SymbolClz from '../helper/Symbol';
diff --git a/en/builder/src/echarts/chart/tree/treeAction.js b/en/builder/src/echarts/chart/tree/treeAction.js
index d928444..15992ec 100644
--- a/en/builder/src/echarts/chart/tree/treeAction.js
+++ b/en/builder/src/echarts/chart/tree/treeAction.js
@@ -16,11 +16,6 @@
 * specific language governing permissions and limitations
 * under the License.
 */
-
-/**
- * @file Register the actions of the tree
- * @author Deqing Li(annong035@gmail.com)
- */
 import * as echarts from '../../echarts';
 import { updateCenterAndZoom } from '../../action/roamHelper';
 echarts.registerAction({
diff --git a/en/builder/src/echarts/component/brush/selector.js b/en/builder/src/echarts/component/brush/selector.js
index bf57d60..3179b51 100644
--- a/en/builder/src/echarts/component/brush/selector.js
+++ b/en/builder/src/echarts/component/brush/selector.js
@@ -17,7 +17,8 @@
 * under the License.
 */
 import * as polygonContain from 'zrender/src/contain/polygon';
-import BoundingRect from 'zrender/src/core/BoundingRect'; // Key of the first level is brushType: `line`, `rect`, `polygon`.
+import BoundingRect from 'zrender/src/core/BoundingRect';
+import { linePolygonIntersect } from '../../util/graphic'; // Key of the first level is brushType: `line`, `rect`, `polygon`.
 // Key of the second level is chart element type: `point`, `rect`.
 // See moudule:echarts/component/helper/BrushController
 // function param:
@@ -55,7 +56,7 @@ var selector = {
       var height = itemLayout.height;
       var p = points[0];
 
-      if (polygonContain.contain(points, x, y) || polygonContain.contain(points, x + width, y) || polygonContain.contain(points, x, y + height) || polygonContain.contain(points, x + width, y + height) || BoundingRect.create(itemLayout).contain(p[0], p[1]) || lineIntersectPolygon(x, y, x + width, y, points) || lineIntersectPolygon(x, y, x, y + height, points) || lineIntersectPolygon(x + width, y, x + width, y + height, points) || lineIntersectPolygon(x, y + height, x + width, y + height,  [...]
+      if (polygonContain.contain(points, x, y) || polygonContain.contain(points, x + width, y) || polygonContain.contain(points, x, y + height) || polygonContain.contain(points, x + width, y + height) || BoundingRect.create(itemLayout).contain(p[0], p[1]) || linePolygonIntersect(x, y, x + width, y, points) || linePolygonIntersect(x, y, x, y + height, points) || linePolygonIntersect(x + width, y, x + width, y + height, points) || linePolygonIntersect(x, y + height, x + width, y + height,  [...]
         return true;
       }
     }
@@ -88,49 +89,4 @@ function inLineRange(p, range) {
   return range[0] <= p && p <= range[1];
 }
 
-function lineIntersectPolygon(lx, ly, l2x, l2y, points) {
-  for (var i = 0, p2 = points[points.length - 1]; i < points.length; i++) {
-    var p = points[i];
-
-    if (lineIntersect(lx, ly, l2x, l2y, p[0], p[1], p2[0], p2[1])) {
-      return true;
-    }
-
-    p2 = p;
-  }
-} // Code from <http://blog.csdn.net/rickliuxiao/article/details/6259322> with some fix.
-// See <https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection>
-
-
-function lineIntersect(a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y) {
-  var delta = determinant(a2x - a1x, b1x - b2x, a2y - a1y, b1y - b2y);
-
-  if (nearZero(delta)) {
-    // parallel
-    return false;
-  }
-
-  var namenda = determinant(b1x - a1x, b1x - b2x, b1y - a1y, b1y - b2y) / delta;
-
-  if (namenda < 0 || namenda > 1) {
-    return false;
-  }
-
-  var miu = determinant(a2x - a1x, b1x - a1x, a2y - a1y, b1y - a1y) / delta;
-
-  if (miu < 0 || miu > 1) {
-    return false;
-  }
-
-  return true;
-}
-
-function nearZero(val) {
-  return val <= 1e-6 && val >= -1e-6;
-}
-
-function determinant(v1, v2, v3, v4) {
-  return v1 * v4 - v2 * v3;
-}
-
 export default selector;
\ No newline at end of file
diff --git a/en/builder/src/echarts/component/calendar.js b/en/builder/src/echarts/component/calendar.js
index a578ee6..6905de2 100644
--- a/en/builder/src/echarts/component/calendar.js
+++ b/en/builder/src/echarts/component/calendar.js
@@ -16,11 +16,6 @@
 * specific language governing permissions and limitations
 * under the License.
 */
-
-/**
- * @file calendar.js
- * @author dxh
- */
 import '../coord/calendar/Calendar';
 import '../coord/calendar/CalendarModel';
 import './calendar/CalendarView';
\ No newline at end of file
diff --git a/en/builder/src/echarts/component/toolbox/feature/DataView.js b/en/builder/src/echarts/component/toolbox/feature/DataView.js
index 752d851..7e4923a 100644
--- a/en/builder/src/echarts/component/toolbox/feature/DataView.js
+++ b/en/builder/src/echarts/component/toolbox/feature/DataView.js
@@ -398,22 +398,7 @@ DataView.prototype.onclick = function (ecModel, api) {
   refreshButton.style.cssText = buttonStyle;
   closeButton.style.cssText = buttonStyle;
   !model.get('readOnly') && buttonContainer.appendChild(refreshButton);
-  buttonContainer.appendChild(closeButton); // http://stackoverflow.com/questions/6637341/use-tab-to-indent-in-textarea
-
-  eventTool.addEventListener(textarea, 'keydown', function (e) {
-    if ((e.keyCode || e.which) === 9) {
-      // get caret position/selection
-      var val = this.value;
-      var start = this.selectionStart;
-      var end = this.selectionEnd; // set textarea value to: text before caret + tab + text after caret
-
-      this.value = val.substring(0, start) + ITEM_SPLITER + val.substring(end); // put caret at right position again
-
-      this.selectionStart = this.selectionEnd = start + 1; // prevent the focus lose
-
-      eventTool.stop(e);
-    }
-  });
+  buttonContainer.appendChild(closeButton);
   root.appendChild(header);
   root.appendChild(viewMain);
   root.appendChild(buttonContainer);
diff --git a/en/builder/src/echarts/component/tooltip/TooltipContent.js b/en/builder/src/echarts/component/tooltip/TooltipContent.js
index 6758935..20e0ee4 100644
--- a/en/builder/src/echarts/component/tooltip/TooltipContent.js
+++ b/en/builder/src/echarts/component/tooltip/TooltipContent.js
@@ -195,7 +195,9 @@ TooltipContent.prototype = {
   show: function (tooltipModel) {
     clearTimeout(this._hideTimeout);
     var el = this.el;
-    el.style.cssText = gCssText + assembleCssText(tooltipModel) // http://stackoverflow.com/questions/21125587/css3-transition-not-working-in-chrome-anymore
+    el.style.cssText = gCssText + assembleCssText(tooltipModel) // Because of the reason described in:
+    // http://stackoverflow.com/questions/21125587/css3-transition-not-working-in-chrome-anymore
+    // we should set initial value to `left` and `top`.
     + ';left:' + this._x + 'px;top:' + this._y + 'px;' + (tooltipModel.get('extraCssText') || '');
     el.style.display = el.innerHTML ? 'block' : 'none'; // If mouse occsionally move over the tooltip, a mouseout event will be
     // triggered by canvas, and cuase some unexpectable result like dragging
diff --git a/en/builder/src/echarts/data/Graph.js b/en/builder/src/echarts/data/Graph.js
index 4ca05ca..87ef723 100644
--- a/en/builder/src/echarts/data/Graph.js
+++ b/en/builder/src/echarts/data/Graph.js
@@ -16,13 +16,6 @@
 * specific language governing permissions and limitations
 * under the License.
 */
-
-/**
- * Graph data structure
- *
- * @module echarts/data/Graph
- * @author Yi Shen(https://www.github.com/pissang)
- */
 import { __DEV__ } from '../config';
 import * as zrUtil from 'zrender/src/core/util';
 import { enableClassCheck } from '../util/clazz'; // id may be function name of Object, add a prefix to avoid this problem.
diff --git a/en/builder/src/echarts/helper.js b/en/builder/src/echarts/helper.js
index 654117c..bccbf12 100644
--- a/en/builder/src/echarts/helper.js
+++ b/en/builder/src/echarts/helper.js
@@ -52,7 +52,6 @@ export var dataStack = {
 };
 /**
  * Create a symbol element with given symbol configuration: shape, x, y, width, height, color
- * @see http://echarts.baidu.com/option.html#series-scatter.symbol
  * @param {string} symbolDesc
  * @param {number} x
  * @param {number} y
diff --git a/en/builder/src/echarts/util/KDTree.js b/en/builder/src/echarts/util/KDTree.js
index a29e746..9667fcc 100644
--- a/en/builder/src/echarts/util/KDTree.js
+++ b/en/builder/src/echarts/util/KDTree.js
@@ -16,13 +16,6 @@
 * specific language governing permissions and limitations
 * under the License.
 */
-
-/**
- * K-Dimension Tree
- *
- * @module echarts/data/KDTree
- * @author Yi Shen(https://github.com/pissang)
- */
 import quickSelect from './quickSelect';
 
 function Node(axis, data) {
diff --git a/en/builder/src/echarts/util/graphic.js b/en/builder/src/echarts/util/graphic.js
index 83a7b4b..002f5b4 100644
--- a/en/builder/src/echarts/util/graphic.js
+++ b/en/builder/src/echarts/util/graphic.js
@@ -1227,4 +1227,92 @@ export function createIcon(iconStr, opt, rect) {
     return iconStr.indexOf('image://') === 0 ? (style.image = iconStr.slice(8), zrUtil.defaults(style, rect), new ZImage(opt)) : makePath(iconStr.replace('path://', ''), opt, rect, 'center');
   }
 }
+/**
+ * Return `true` if the given line (line `a`) and the given polygon
+ * are intersect.
+ * Note that we do not count colinear as intersect here because no
+ * requirement for that. We could do that if required in future.
+ *
+ * @param {number} a1x
+ * @param {number} a1y
+ * @param {number} a2x
+ * @param {number} a2y
+ * @param {Array.<Array.<number>>} points Points of the polygon.
+ * @return {boolean}
+ */
+
+export function linePolygonIntersect(a1x, a1y, a2x, a2y, points) {
+  for (var i = 0, p2 = points[points.length - 1]; i < points.length; i++) {
+    var p = points[i];
+
+    if (lineLineIntersect(a1x, a1y, a2x, a2y, p[0], p[1], p2[0], p2[1])) {
+      return true;
+    }
+
+    p2 = p;
+  }
+}
+/**
+ * Return `true` if the given two lines (line `a` and line `b`)
+ * are intersect.
+ * Note that we do not count colinear as intersect here because no
+ * requirement for that. We could do that if required in future.
+ *
+ * @param {number} a1x
+ * @param {number} a1y
+ * @param {number} a2x
+ * @param {number} a2y
+ * @param {number} b1x
+ * @param {number} b1y
+ * @param {number} b2x
+ * @param {number} b2y
+ * @return {boolean}
+ */
+
+export function lineLineIntersect(a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y) {
+  // let `vec_m` to be `vec_a2 - vec_a1` and `vec_n` to be `vec_b2 - vec_b1`.
+  var mx = a2x - a1x;
+  var my = a2y - a1y;
+  var nx = b2x - b1x;
+  var ny = b2y - b1y; // `vec_m` and `vec_n` are parallel iff
+  //     exising `k` such that `vec_m = k · vec_n`, equivalent to `vec_m X vec_n = 0`.
+
+  var nmCrossProduct = crossProduct2d(nx, ny, mx, my);
+
+  if (nearZero(nmCrossProduct)) {
+    return false;
+  } // `vec_m` and `vec_n` are intersect iff
+  //     existing `p` and `q` in [0, 1] such that `vec_a1 + p * vec_m = vec_b1 + q * vec_n`,
+  //     such that `q = ((vec_a1 - vec_b1) X vec_m) / (vec_n X vec_m)`
+  //           and `p = ((vec_a1 - vec_b1) X vec_n) / (vec_n X vec_m)`.
+
+
+  var b1a1x = a1x - b1x;
+  var b1a1y = a1y - b1y;
+  var q = crossProduct2d(b1a1x, b1a1y, mx, my) / nmCrossProduct;
+
+  if (q < 0 || q > 1) {
+    return false;
+  }
+
+  var p = crossProduct2d(b1a1x, b1a1y, nx, ny) / nmCrossProduct;
+
+  if (p < 0 || p > 1) {
+    return false;
+  }
+
+  return true;
+}
+/**
+ * Cross product of 2-dimension vector.
+ */
+
+function crossProduct2d(x1, y1, x2, y2) {
+  return x1 * y2 - x2 * y1;
+}
+
+function nearZero(val) {
+  return val <= 1e-6 && val >= -1e-6;
+}
+
 export { Group, ZImage as Image, Text, Circle, Sector, Ring, Polygon, Polyline, Rect, Line, BezierCurve, Arc, IncrementalDisplayable, CompoundPath, LinearGradient, RadialGradient, BoundingRect };
\ No newline at end of file
diff --git a/en/builder/src/echarts/util/quickSelect.js b/en/builder/src/echarts/util/quickSelect.js
index 8d7f9d8..3bbf1ee 100644
--- a/en/builder/src/echarts/util/quickSelect.js
+++ b/en/builder/src/echarts/util/quickSelect.js
@@ -21,9 +21,6 @@
  * Quick select n-th element in an array.
  *
  * Note: it will change the elements placement in array.
- *
- * @module echarts/core/quickSelect
- * @author Yi Shen(https://github.com/pissang)
  */
 function defaultCompareFunc(a, b) {
   return a - b;
diff --git a/en/changelog.html b/en/changelog.html
index 7f90bf9..4f4df9b 100644
--- a/en/changelog.html
+++ b/en/changelog.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
diff --git a/en/cheat-sheet.html b/en/cheat-sheet.html
index 91f8012..47a9cda 100644
--- a/en/cheat-sheet.html
+++ b/en/cheat-sheet.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
diff --git a/en/coding-standard.html b/en/coding-standard.html
index 30a34d1..2a4e49d 100644
--- a/en/coding-standard.html
+++ b/en/coding-standard.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
diff --git a/en/committers.html b/en/committers.html
index 2b2898e..8285386 100644
--- a/en/committers.html
+++ b/en/committers.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
diff --git a/en/dependencies.html b/en/dependencies.html
index 33605eb..59821b0 100644
--- a/en/dependencies.html
+++ b/en/dependencies.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
diff --git a/en/dist/echarts-en.common.js b/en/dist/echarts-en.common.js
index 9605e93..0250538 100644
--- a/en/dist/echarts-en.common.js
+++ b/en/dist/echarts-en.common.js
@@ -17966,6 +17966,88 @@ function createIcon(iconStr, opt, rect) {
     }
 }
 
+/**
+ * Return `true` if the given line (line `a`) and the given polygon
+ * are intersect.
+ * Note that we do not count colinear as intersect here because no
+ * requirement for that. We could do that if required in future.
+ *
+ * @param {number} a1x
+ * @param {number} a1y
+ * @param {number} a2x
+ * @param {number} a2y
+ * @param {Array.<Array.<number>>} points Points of the polygon.
+ * @return {boolean}
+ */
+function linePolygonIntersect(a1x, a1y, a2x, a2y, points) {
+    for (var i = 0, p2 = points[points.length - 1]; i < points.length; i++) {
+        var p = points[i];
+        if (lineLineIntersect(a1x, a1y, a2x, a2y, p[0], p[1], p2[0], p2[1])) {
+            return true;
+        }
+        p2 = p;
+    }
+}
+
+/**
+ * Return `true` if the given two lines (line `a` and line `b`)
+ * are intersect.
+ * Note that we do not count colinear as intersect here because no
+ * requirement for that. We could do that if required in future.
+ *
+ * @param {number} a1x
+ * @param {number} a1y
+ * @param {number} a2x
+ * @param {number} a2y
+ * @param {number} b1x
+ * @param {number} b1y
+ * @param {number} b2x
+ * @param {number} b2y
+ * @return {boolean}
+ */
+function lineLineIntersect(a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y) {
+    // let `vec_m` to be `vec_a2 - vec_a1` and `vec_n` to be `vec_b2 - vec_b1`.
+    var mx = a2x - a1x;
+    var my = a2y - a1y;
+    var nx = b2x - b1x;
+    var ny = b2y - b1y;
+
+    // `vec_m` and `vec_n` are parallel iff
+    //     exising `k` such that `vec_m = k · vec_n`, equivalent to `vec_m X vec_n = 0`.
+    var nmCrossProduct = crossProduct2d(nx, ny, mx, my);
+    if (nearZero(nmCrossProduct)) {
+        return false;
+    }
+
+    // `vec_m` and `vec_n` are intersect iff
+    //     existing `p` and `q` in [0, 1] such that `vec_a1 + p * vec_m = vec_b1 + q * vec_n`,
+    //     such that `q = ((vec_a1 - vec_b1) X vec_m) / (vec_n X vec_m)`
+    //           and `p = ((vec_a1 - vec_b1) X vec_n) / (vec_n X vec_m)`.
+    var b1a1x = a1x - b1x;
+    var b1a1y = a1y - b1y;
+    var q = crossProduct2d(b1a1x, b1a1y, mx, my) / nmCrossProduct;
+    if (q < 0 || q > 1) {
+        return false;
+    }
+    var p = crossProduct2d(b1a1x, b1a1y, nx, ny) / nmCrossProduct;
+    if (p < 0 || p > 1) {
+        return false;
+    }
+
+    return true;
+}
+
+/**
+ * Cross product of 2-dimension vector.
+ */
+function crossProduct2d(x1, y1, x2, y2) {
+    return x1 * y2 - x2 * y1;
+}
+
+function nearZero(val) {
+    return val <= (1e-6) && val >= -(1e-6);
+}
+
 
 
 
@@ -18000,6 +18082,8 @@ var graphic = (Object.freeze || Object)({
 	clipPointsByRect: clipPointsByRect,
 	clipRectByRect: clipRectByRect,
 	createIcon: createIcon,
+	linePolygonIntersect: linePolygonIntersect,
+	lineLineIntersect: lineLineIntersect,
 	Group: Group,
 	Image: ZImage,
 	Text: Text,
@@ -46682,7 +46766,9 @@ TooltipContent.prototype = {
         var el = this.el;
 
         el.style.cssText = gCssText + assembleCssText(tooltipModel)
+            // Because of the reason described in:
             // http://stackoverflow.com/questions/21125587/css3-transition-not-working-in-chrome-anymore
+            // we should set initial value to `left` and `top`.
             + ';left:' + this._x + 'px;top:' + this._y + 'px;'
             + (tooltipModel.get('extraCssText') || '');
 
@@ -56230,25 +56316,6 @@ DataView.prototype.onclick = function (ecModel, api) {
     !model.get('readOnly') && buttonContainer.appendChild(refreshButton);
     buttonContainer.appendChild(closeButton);
 
-    // http://stackoverflow.com/questions/6637341/use-tab-to-indent-in-textarea
-    addEventListener(textarea, 'keydown', function (e) {
-        if ((e.keyCode || e.which) === 9) {
-            // get caret position/selection
-            var val = this.value;
-            var start = this.selectionStart;
-            var end = this.selectionEnd;
-
-            // set textarea value to: text before caret + tab + text after caret
-            this.value = val.substring(0, start) + ITEM_SPLITER + val.substring(end);
-
-            // put caret at right position again
-            this.selectionStart = this.selectionEnd = start + 1;
-
-            // prevent the focus lose
-            stop(e);
-        }
-    });
-
     root.appendChild(header);
     root.appendChild(viewMain);
     root.appendChild(buttonContainer);
diff --git a/en/dist/echarts-en.common.min.js b/en/dist/echarts-en.common.min.js
index ca98c0a..ea1b3e1 100644
--- a/en/dist/echarts-en.common.min.js
+++ b/en/dist/echarts-en.common.min.js
@@ -19,4 +19,4 @@
 */
 
 
-!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";var e=2311,i=function(){return e++},v="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasS [...]
+!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";var e=2311,i=function(){return e++},v="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasS [...]
diff --git a/en/dist/echarts-en.js b/en/dist/echarts-en.js
index a25b58a..929af6b 100644
--- a/en/dist/echarts-en.js
+++ b/en/dist/echarts-en.js
@@ -18022,6 +18022,88 @@ function createIcon(iconStr, opt, rect) {
     }
 }
 
+/**
+ * Return `true` if the given line (line `a`) and the given polygon
+ * are intersect.
+ * Note that we do not count colinear as intersect here because no
+ * requirement for that. We could do that if required in future.
+ *
+ * @param {number} a1x
+ * @param {number} a1y
+ * @param {number} a2x
+ * @param {number} a2y
+ * @param {Array.<Array.<number>>} points Points of the polygon.
+ * @return {boolean}
+ */
+function linePolygonIntersect(a1x, a1y, a2x, a2y, points) {
+    for (var i = 0, p2 = points[points.length - 1]; i < points.length; i++) {
+        var p = points[i];
+        if (lineLineIntersect(a1x, a1y, a2x, a2y, p[0], p[1], p2[0], p2[1])) {
+            return true;
+        }
+        p2 = p;
+    }
+}
+
+/**
+ * Return `true` if the given two lines (line `a` and line `b`)
+ * are intersect.
+ * Note that we do not count colinear as intersect here because no
+ * requirement for that. We could do that if required in future.
+ *
+ * @param {number} a1x
+ * @param {number} a1y
+ * @param {number} a2x
+ * @param {number} a2y
+ * @param {number} b1x
+ * @param {number} b1y
+ * @param {number} b2x
+ * @param {number} b2y
+ * @return {boolean}
+ */
+function lineLineIntersect(a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y) {
+    // let `vec_m` to be `vec_a2 - vec_a1` and `vec_n` to be `vec_b2 - vec_b1`.
+    var mx = a2x - a1x;
+    var my = a2y - a1y;
+    var nx = b2x - b1x;
+    var ny = b2y - b1y;
+
+    // `vec_m` and `vec_n` are parallel iff
+    //     exising `k` such that `vec_m = k · vec_n`, equivalent to `vec_m X vec_n = 0`.
+    var nmCrossProduct = crossProduct2d(nx, ny, mx, my);
+    if (nearZero(nmCrossProduct)) {
+        return false;
+    }
+
+    // `vec_m` and `vec_n` are intersect iff
+    //     existing `p` and `q` in [0, 1] such that `vec_a1 + p * vec_m = vec_b1 + q * vec_n`,
+    //     such that `q = ((vec_a1 - vec_b1) X vec_m) / (vec_n X vec_m)`
+    //           and `p = ((vec_a1 - vec_b1) X vec_n) / (vec_n X vec_m)`.
+    var b1a1x = a1x - b1x;
+    var b1a1y = a1y - b1y;
+    var q = crossProduct2d(b1a1x, b1a1y, mx, my) / nmCrossProduct;
+    if (q < 0 || q > 1) {
+        return false;
+    }
+    var p = crossProduct2d(b1a1x, b1a1y, nx, ny) / nmCrossProduct;
+    if (p < 0 || p > 1) {
+        return false;
+    }
+
+    return true;
+}
+
+/**
+ * Cross product of 2-dimension vector.
+ */
+function crossProduct2d(x1, y1, x2, y2) {
+    return x1 * y2 - x2 * y1;
+}
+
+function nearZero(val) {
+    return val <= (1e-6) && val >= -(1e-6);
+}
+
 
 
 
@@ -18056,6 +18138,8 @@ var graphic = (Object.freeze || Object)({
 	clipPointsByRect: clipPointsByRect,
 	clipRectByRect: clipRectByRect,
 	createIcon: createIcon,
+	linePolygonIntersect: linePolygonIntersect,
+	lineLineIntersect: lineLineIntersect,
 	Group: Group,
 	Image: ZImage,
 	Text: Text,
@@ -45798,7 +45882,7 @@ function makeInvoker(methodName) {
 function mapNotExistsError(mapName) {
     if (__DEV__) {
         console.error(
-            'Map ' + mapName + ' not exists. You can download map file on http://echarts.baidu.com/download-map.html'
+            'Map ' + mapName + ' not exists. The GeoJSON of the map must be provided.'
         );
     }
 }
@@ -49012,11 +49096,6 @@ function addChild(child, node) {
 * under the License.
 */
 
-/**
- * @file Create data struct and define tree view's series model
- * @author Deqing Li(annong035@gmail.com)
- */
-
 SeriesModel.extend({
 
     type: 'series.tree',
@@ -49526,11 +49605,6 @@ function defaultSeparation(node1, node2) {
 * under the License.
 */
 
-/**
- * @file This file used to draw tree view.
- * @author Deqing Li(annong035@gmail.com)
- */
-
 extendChartView({
 
     type: 'tree',
@@ -50017,11 +50091,6 @@ function getEdgeShape(seriesScope, sourceLayout, targetLayout) {
 * under the License.
 */
 
-/**
- * @file Register the actions of the tree
- * @author Deqing Li(annong035@gmail.com)
- */
-
 registerAction({
     type: 'treeExpandAndCollapse',
     event: 'treeExpandAndCollapse',
@@ -53492,13 +53561,6 @@ registerLayout(treemapLayout);
 * under the License.
 */
 
-/**
- * Graph data structure
- *
- * @module echarts/data/Graph
- * @author Yi Shen(https://www.github.com/pissang)
- */
-
 // id may be function name of Object, add a prefix to avoid this problem.
 function generateNodeKey(id) {
     return '_EC_' + id;
@@ -60885,11 +60947,6 @@ registerVisual(parallelVisual);
 * under the License.
 */
 
-/**
- * @file Get initial data and define sankey view's series model
- * @author Deqing Li(annong035@gmail.com)
- */
-
 var SankeySeries = SeriesModel.extend({
 
     type: 'series.sankey',
@@ -61095,11 +61152,6 @@ var SankeySeries = SeriesModel.extend({
 * under the License.
 */
 
-/**
- * @file  The file used to draw sankey diagram.
- * @author  Deqing Li(annong035@gmail.com)
- */
-
 var nodeOpacityPath$1 = ['itemStyle', 'opacity'];
 var lineOpacityPath$1 = ['lineStyle', 'opacity'];
 
@@ -61518,11 +61570,6 @@ function createGridClipShape$2(rect, seriesModel, cb) {
 * under the License.
 */
 
-/**
- * @file The interactive action of sankey view
- * @author Deqing Li(annong035@gmail.com)
- */
-
 registerAction({
     type: 'dragNode',
     event: 'dragNode',
@@ -61553,11 +61600,6 @@ registerAction({
 * under the License.
 */
 
-/**
- * @file The layout algorithm of sankey diagram.
- * @author Deqing Li(annong035@gmail.com)
- */
-
 var sankeyLayout = function (ecModel, api, payload) {
 
     ecModel.eachSeriesByType('sankey', function (seriesModel) {
@@ -62055,11 +62097,6 @@ function computeEdgeDepths(nodes, orient) {
 * under the License.
 */
 
-/**
- * @file Visual encoding for sankey view
- * @author  Deqing Li(annong035@gmail.com)
- */
-
 var sankeyVisual = function (ecModel, payload) {
     ecModel.eachSeriesByType('sankey', function (seriesModel) {
         var graph = seriesModel.getGraph();
@@ -65349,14 +65386,6 @@ SeriesModel.extend({
 
 /* global Uint8ClampedArray */
 
-/**
- * @file defines echarts Heatmap Chart
- * @author Ovilia (me@zhangwenli.com)
- * Inspired by https://github.com/mourner/simpleheat
- *
- * @module
- */
-
 var GRADIENT_LEVELS = 256;
 
 /**
@@ -69375,11 +69404,6 @@ extendComponentView({
 * under the License.
 */
 
-/**
- * @file  Define the themeRiver view's series model
- * @author Deqing Li(annong035@gmail.com)
- */
-
 var DATA_NAME_INDEX = 2;
 
 var ThemeRiverSeries = SeriesModel.extend({
@@ -69666,11 +69690,6 @@ var ThemeRiverSeries = SeriesModel.extend({
 * under the License.
 */
 
-/**
- * @file  The file used to draw themeRiver view
- * @author  Deqing Li(annong035@gmail.com)
- */
-
 extendChartView({
 
     type: 'themeRiver',
@@ -69849,11 +69868,6 @@ function createGridClipShape$3(rect, seriesModel, cb) {
 * under the License.
 */
 
-/**
- * @file  Using layout algorithm transform the raw data to layout information.
- * @author Deqing Li(annong035@gmail.com)
- */
-
 var themeRiverLayout = function (ecModel, api) {
 
     ecModel.eachSeriesByType('themeRiver', function (seriesModel) {
@@ -70008,11 +70022,6 @@ function computeBaseline(data) {
 * under the License.
 */
 
-/**
- * @file Visual encoding for themeRiver view
- * @author Deqing Li(annong035@gmail.com)
- */
-
 var themeRiverVisual = function (ecModel) {
     ecModel.eachSeriesByType('themeRiver', function (seriesModel) {
         var data = seriesModel.getData();
@@ -75382,11 +75391,6 @@ extendComponentView({
 * under the License.
 */
 
-/**
- * @file calendar.js
- * @author dxh
- */
-
 /*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
@@ -77078,25 +77082,6 @@ DataView.prototype.onclick = function (ecModel, api) {
     !model.get('readOnly') && buttonContainer.appendChild(refreshButton);
     buttonContainer.appendChild(closeButton);
 
-    // http://stackoverflow.com/questions/6637341/use-tab-to-indent-in-textarea
-    addEventListener(textarea, 'keydown', function (e) {
-        if ((e.keyCode || e.which) === 9) {
-            // get caret position/selection
-            var val = this.value;
-            var start = this.selectionStart;
-            var end = this.selectionEnd;
-
-            // set textarea value to: text before caret + tab + text after caret
-            this.value = val.substring(0, start) + ITEM_SPLITER + val.substring(end);
-
-            // put caret at right position again
-            this.selectionStart = this.selectionEnd = start + 1;
-
-            // prevent the focus lose
-            stop(e);
-        }
-    });
-
     root.appendChild(header);
     root.appendChild(viewMain);
     root.appendChild(buttonContainer);
@@ -80024,7 +80009,9 @@ TooltipContent.prototype = {
         var el = this.el;
 
         el.style.cssText = gCssText + assembleCssText(tooltipModel)
+            // Because of the reason described in:
             // http://stackoverflow.com/questions/21125587/css3-transition-not-working-in-chrome-anymore
+            // we should set initial value to `left` and `top`.
             + ';left:' + this._x + 'px;top:' + this._y + 'px;'
             + (tooltipModel.get('extraCssText') || '');
 
@@ -81525,10 +81512,10 @@ var selector = {
                 || contain$1(points, x, y + height)
                 || contain$1(points, x + width, y + height)
                 || BoundingRect.create(itemLayout).contain(p[0], p[1])
-                || lineIntersectPolygon(x, y, x + width, y, points)
-                || lineIntersectPolygon(x, y, x, y + height, points)
-                || lineIntersectPolygon(x + width, y, x + width, y + height, points)
-                || lineIntersectPolygon(x, y + height, x + width, y + height, points)
+                || linePolygonIntersect(x, y, x + width, y, points)
+                || linePolygonIntersect(x, y, x, y + height, points)
+                || linePolygonIntersect(x + width, y, x + width, y + height, points)
+                || linePolygonIntersect(x, y + height, x + width, y + height, points)
             ) {
                 return true;
             }
@@ -81569,42 +81556,6 @@ function inLineRange(p, range) {
     return range[0] <= p && p <= range[1];
 }
 
-function lineIntersectPolygon(lx, ly, l2x, l2y, points) {
-    for (var i = 0, p2 = points[points.length - 1]; i < points.length; i++) {
-        var p = points[i];
-        if (lineIntersect(lx, ly, l2x, l2y, p[0], p[1], p2[0], p2[1])) {
-            return true;
-        }
-        p2 = p;
-    }
-}
-
-// Code from <http://blog.csdn.net/rickliuxiao/article/details/6259322> with some fix.
-// See <https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection>
-function lineIntersect(a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y) {
-    var delta = determinant$1(a2x - a1x, b1x - b2x, a2y - a1y, b1y - b2y);
-    if (nearZero(delta)) { // parallel
-        return false;
-    }
-    var namenda = determinant$1(b1x - a1x, b1x - b2x, b1y - a1y, b1y - b2y) / delta;
-    if (namenda < 0 || namenda > 1) {
-        return false;
-    }
-    var miu = determinant$1(a2x - a1x, b1x - a1x, a2y - a1y, b1y - a1y) / delta;
-    if (miu < 0 || miu > 1) {
-        return false;
-    }
-    return true;
-}
-
-function nearZero(val) {
-    return val <= (1e-6) && val >= -(1e-6);
-}
-
-function determinant$1(v1, v2, v3, v4) {
-    return v1 * v4 - v2 * v3;
-}
-
 /*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
diff --git a/en/dist/echarts-en.js.map b/en/dist/echarts-en.js.map
index 6ab7a88..a6994b3 100644
--- a/en/dist/echarts-en.js.map
+++ b/en/dist/echarts-en.js.map
@@ -1 +1 @@
-{"version":3,"file":"echarts-en.js","sources":["../src/config.js","../../zrender/src/core/guid.js","../../zrender/src/core/env.js","../../zrender/src/core/util.js","../../zrender/src/core/vector.js","../../zrender/src/mixin/Draggable.js","../../zrender/src/mixin/Eventful.js","../../zrender/src/core/fourPointsTransform.js","../../zrender/src/core/event.js","../../zrender/src/core/GestureMgr.js","../../zrender/src/Handler.js","../../zrender/src/core/matrix.js","../../zrender/src/mixin/Tran [...]
\ No newline at end of file
+{"version":3,"file":"echarts-en.js","sources":["../src/config.js","../../zrender/src/core/guid.js","../../zrender/src/core/env.js","../../zrender/src/core/util.js","../../zrender/src/core/vector.js","../../zrender/src/mixin/Draggable.js","../../zrender/src/mixin/Eventful.js","../../zrender/src/core/fourPointsTransform.js","../../zrender/src/core/event.js","../../zrender/src/core/GestureMgr.js","../../zrender/src/Handler.js","../../zrender/src/core/matrix.js","../../zrender/src/mixin/Tran [...]
\ No newline at end of file
diff --git a/en/dist/echarts-en.min.js b/en/dist/echarts-en.min.js
index a0efa3b..f87bf53 100644
--- a/en/dist/echarts-en.min.js
+++ b/en/dist/echarts-en.min.js
@@ -19,4 +19,4 @@
 */
 
 
-!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";var e=2311,n=function(){return e++},v="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasS [...]
+!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";var e=2311,n=function(){return e++},v="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasS [...]
diff --git a/en/dist/echarts-en.simple.js b/en/dist/echarts-en.simple.js
index a5a19a1..d327cc3 100644
--- a/en/dist/echarts-en.simple.js
+++ b/en/dist/echarts-en.simple.js
@@ -17609,6 +17609,88 @@ function createIcon(iconStr, opt, rect) {
     }
 }
 
+/**
+ * Return `true` if the given line (line `a`) and the given polygon
+ * are intersect.
+ * Note that we do not count colinear as intersect here because no
+ * requirement for that. We could do that if required in future.
+ *
+ * @param {number} a1x
+ * @param {number} a1y
+ * @param {number} a2x
+ * @param {number} a2y
+ * @param {Array.<Array.<number>>} points Points of the polygon.
+ * @return {boolean}
+ */
+function linePolygonIntersect(a1x, a1y, a2x, a2y, points) {
+    for (var i = 0, p2 = points[points.length - 1]; i < points.length; i++) {
+        var p = points[i];
+        if (lineLineIntersect(a1x, a1y, a2x, a2y, p[0], p[1], p2[0], p2[1])) {
+            return true;
+        }
+        p2 = p;
+    }
+}
+
+/**
+ * Return `true` if the given two lines (line `a` and line `b`)
+ * are intersect.
+ * Note that we do not count colinear as intersect here because no
+ * requirement for that. We could do that if required in future.
+ *
+ * @param {number} a1x
+ * @param {number} a1y
+ * @param {number} a2x
+ * @param {number} a2y
+ * @param {number} b1x
+ * @param {number} b1y
+ * @param {number} b2x
+ * @param {number} b2y
+ * @return {boolean}
+ */
+function lineLineIntersect(a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y) {
+    // let `vec_m` to be `vec_a2 - vec_a1` and `vec_n` to be `vec_b2 - vec_b1`.
+    var mx = a2x - a1x;
+    var my = a2y - a1y;
+    var nx = b2x - b1x;
+    var ny = b2y - b1y;
+
+    // `vec_m` and `vec_n` are parallel iff
+    //     exising `k` such that `vec_m = k · vec_n`, equivalent to `vec_m X vec_n = 0`.
+    var nmCrossProduct = crossProduct2d(nx, ny, mx, my);
+    if (nearZero(nmCrossProduct)) {
+        return false;
+    }
+
+    // `vec_m` and `vec_n` are intersect iff
+    //     existing `p` and `q` in [0, 1] such that `vec_a1 + p * vec_m = vec_b1 + q * vec_n`,
+    //     such that `q = ((vec_a1 - vec_b1) X vec_m) / (vec_n X vec_m)`
+    //           and `p = ((vec_a1 - vec_b1) X vec_n) / (vec_n X vec_m)`.
+    var b1a1x = a1x - b1x;
+    var b1a1y = a1y - b1y;
+    var q = crossProduct2d(b1a1x, b1a1y, mx, my) / nmCrossProduct;
+    if (q < 0 || q > 1) {
+        return false;
+    }
+    var p = crossProduct2d(b1a1x, b1a1y, nx, ny) / nmCrossProduct;
+    if (p < 0 || p > 1) {
+        return false;
+    }
+
+    return true;
+}
+
+/**
+ * Cross product of 2-dimension vector.
+ */
+function crossProduct2d(x1, y1, x2, y2) {
+    return x1 * y2 - x2 * y1;
+}
+
+function nearZero(val) {
+    return val <= (1e-6) && val >= -(1e-6);
+}
+
 
 
 
@@ -17643,6 +17725,8 @@ var graphic = (Object.freeze || Object)({
 	clipPointsByRect: clipPointsByRect,
 	clipRectByRect: clipRectByRect,
 	createIcon: createIcon,
+	linePolygonIntersect: linePolygonIntersect,
+	lineLineIntersect: lineLineIntersect,
 	Group: Group,
 	Image: ZImage,
 	Text: Text,
diff --git a/en/dist/echarts-en.simple.min.js b/en/dist/echarts-en.simple.min.js
index 04a6d3a..ab7d46c 100644
--- a/en/dist/echarts-en.simple.min.js
+++ b/en/dist/echarts-en.simple.min.js
@@ -19,4 +19,4 @@
 */
 
 
-!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";var e=2311,n=function(){return e++},m="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasS [...]
+!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";var e=2311,n=function(){return e++},m="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasS [...]
diff --git a/en/dist/echarts.common.js b/en/dist/echarts.common.js
index dd32d98..0615b10 100644
--- a/en/dist/echarts.common.js
+++ b/en/dist/echarts.common.js
@@ -17966,6 +17966,88 @@ function createIcon(iconStr, opt, rect) {
     }
 }
 
+/**
+ * Return `true` if the given line (line `a`) and the given polygon
+ * are intersect.
+ * Note that we do not count colinear as intersect here because no
+ * requirement for that. We could do that if required in future.
+ *
+ * @param {number} a1x
+ * @param {number} a1y
+ * @param {number} a2x
+ * @param {number} a2y
+ * @param {Array.<Array.<number>>} points Points of the polygon.
+ * @return {boolean}
+ */
+function linePolygonIntersect(a1x, a1y, a2x, a2y, points) {
+    for (var i = 0, p2 = points[points.length - 1]; i < points.length; i++) {
+        var p = points[i];
+        if (lineLineIntersect(a1x, a1y, a2x, a2y, p[0], p[1], p2[0], p2[1])) {
+            return true;
+        }
+        p2 = p;
+    }
+}
+
+/**
+ * Return `true` if the given two lines (line `a` and line `b`)
+ * are intersect.
+ * Note that we do not count colinear as intersect here because no
+ * requirement for that. We could do that if required in future.
+ *
+ * @param {number} a1x
+ * @param {number} a1y
+ * @param {number} a2x
+ * @param {number} a2y
+ * @param {number} b1x
+ * @param {number} b1y
+ * @param {number} b2x
+ * @param {number} b2y
+ * @return {boolean}
+ */
+function lineLineIntersect(a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y) {
+    // let `vec_m` to be `vec_a2 - vec_a1` and `vec_n` to be `vec_b2 - vec_b1`.
+    var mx = a2x - a1x;
+    var my = a2y - a1y;
+    var nx = b2x - b1x;
+    var ny = b2y - b1y;
+
+    // `vec_m` and `vec_n` are parallel iff
+    //     exising `k` such that `vec_m = k · vec_n`, equivalent to `vec_m X vec_n = 0`.
+    var nmCrossProduct = crossProduct2d(nx, ny, mx, my);
+    if (nearZero(nmCrossProduct)) {
+        return false;
+    }
+
+    // `vec_m` and `vec_n` are intersect iff
+    //     existing `p` and `q` in [0, 1] such that `vec_a1 + p * vec_m = vec_b1 + q * vec_n`,
+    //     such that `q = ((vec_a1 - vec_b1) X vec_m) / (vec_n X vec_m)`
+    //           and `p = ((vec_a1 - vec_b1) X vec_n) / (vec_n X vec_m)`.
+    var b1a1x = a1x - b1x;
+    var b1a1y = a1y - b1y;
+    var q = crossProduct2d(b1a1x, b1a1y, mx, my) / nmCrossProduct;
+    if (q < 0 || q > 1) {
+        return false;
+    }
+    var p = crossProduct2d(b1a1x, b1a1y, nx, ny) / nmCrossProduct;
+    if (p < 0 || p > 1) {
+        return false;
+    }
+
+    return true;
+}
+
+/**
+ * Cross product of 2-dimension vector.
+ */
+function crossProduct2d(x1, y1, x2, y2) {
+    return x1 * y2 - x2 * y1;
+}
+
+function nearZero(val) {
+    return val <= (1e-6) && val >= -(1e-6);
+}
+
 
 
 
@@ -18000,6 +18082,8 @@ var graphic = (Object.freeze || Object)({
 	clipPointsByRect: clipPointsByRect,
 	clipRectByRect: clipRectByRect,
 	createIcon: createIcon,
+	linePolygonIntersect: linePolygonIntersect,
+	lineLineIntersect: lineLineIntersect,
 	Group: Group,
 	Image: ZImage,
 	Text: Text,
@@ -46708,7 +46792,9 @@ TooltipContent.prototype = {
         var el = this.el;
 
         el.style.cssText = gCssText + assembleCssText(tooltipModel)
+            // Because of the reason described in:
             // http://stackoverflow.com/questions/21125587/css3-transition-not-working-in-chrome-anymore
+            // we should set initial value to `left` and `top`.
             + ';left:' + this._x + 'px;top:' + this._y + 'px;'
             + (tooltipModel.get('extraCssText') || '');
 
@@ -56256,25 +56342,6 @@ DataView.prototype.onclick = function (ecModel, api) {
     !model.get('readOnly') && buttonContainer.appendChild(refreshButton);
     buttonContainer.appendChild(closeButton);
 
-    // http://stackoverflow.com/questions/6637341/use-tab-to-indent-in-textarea
-    addEventListener(textarea, 'keydown', function (e) {
-        if ((e.keyCode || e.which) === 9) {
-            // get caret position/selection
-            var val = this.value;
-            var start = this.selectionStart;
-            var end = this.selectionEnd;
-
-            // set textarea value to: text before caret + tab + text after caret
-            this.value = val.substring(0, start) + ITEM_SPLITER + val.substring(end);
-
-            // put caret at right position again
-            this.selectionStart = this.selectionEnd = start + 1;
-
-            // prevent the focus lose
-            stop(e);
-        }
-    });
-
     root.appendChild(header);
     root.appendChild(viewMain);
     root.appendChild(buttonContainer);
diff --git a/en/dist/echarts.common.min.js b/en/dist/echarts.common.min.js
index eaec7d3..bf630ba 100644
--- a/en/dist/echarts.common.min.js
+++ b/en/dist/echarts.common.min.js
@@ -19,4 +19,4 @@
 */
 
 
-!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";var e=2311,i=function(){return e++},v="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasS [...]
+!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";var e=2311,i=function(){return e++},v="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasS [...]
diff --git a/en/dist/echarts.js b/en/dist/echarts.js
index 274f1a4..e1af794 100644
--- a/en/dist/echarts.js
+++ b/en/dist/echarts.js
@@ -18022,6 +18022,88 @@ function createIcon(iconStr, opt, rect) {
     }
 }
 
+/**
+ * Return `true` if the given line (line `a`) and the given polygon
+ * are intersect.
+ * Note that we do not count colinear as intersect here because no
+ * requirement for that. We could do that if required in future.
+ *
+ * @param {number} a1x
+ * @param {number} a1y
+ * @param {number} a2x
+ * @param {number} a2y
+ * @param {Array.<Array.<number>>} points Points of the polygon.
+ * @return {boolean}
+ */
+function linePolygonIntersect(a1x, a1y, a2x, a2y, points) {
+    for (var i = 0, p2 = points[points.length - 1]; i < points.length; i++) {
+        var p = points[i];
+        if (lineLineIntersect(a1x, a1y, a2x, a2y, p[0], p[1], p2[0], p2[1])) {
+            return true;
+        }
+        p2 = p;
+    }
+}
+
+/**
+ * Return `true` if the given two lines (line `a` and line `b`)
+ * are intersect.
+ * Note that we do not count colinear as intersect here because no
+ * requirement for that. We could do that if required in future.
+ *
+ * @param {number} a1x
+ * @param {number} a1y
+ * @param {number} a2x
+ * @param {number} a2y
+ * @param {number} b1x
+ * @param {number} b1y
+ * @param {number} b2x
+ * @param {number} b2y
+ * @return {boolean}
+ */
+function lineLineIntersect(a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y) {
+    // let `vec_m` to be `vec_a2 - vec_a1` and `vec_n` to be `vec_b2 - vec_b1`.
+    var mx = a2x - a1x;
+    var my = a2y - a1y;
+    var nx = b2x - b1x;
+    var ny = b2y - b1y;
+
+    // `vec_m` and `vec_n` are parallel iff
+    //     exising `k` such that `vec_m = k · vec_n`, equivalent to `vec_m X vec_n = 0`.
+    var nmCrossProduct = crossProduct2d(nx, ny, mx, my);
+    if (nearZero(nmCrossProduct)) {
+        return false;
+    }
+
+    // `vec_m` and `vec_n` are intersect iff
+    //     existing `p` and `q` in [0, 1] such that `vec_a1 + p * vec_m = vec_b1 + q * vec_n`,
+    //     such that `q = ((vec_a1 - vec_b1) X vec_m) / (vec_n X vec_m)`
+    //           and `p = ((vec_a1 - vec_b1) X vec_n) / (vec_n X vec_m)`.
+    var b1a1x = a1x - b1x;
+    var b1a1y = a1y - b1y;
+    var q = crossProduct2d(b1a1x, b1a1y, mx, my) / nmCrossProduct;
+    if (q < 0 || q > 1) {
+        return false;
+    }
+    var p = crossProduct2d(b1a1x, b1a1y, nx, ny) / nmCrossProduct;
+    if (p < 0 || p > 1) {
+        return false;
+    }
+
+    return true;
+}
+
+/**
+ * Cross product of 2-dimension vector.
+ */
+function crossProduct2d(x1, y1, x2, y2) {
+    return x1 * y2 - x2 * y1;
+}
+
+function nearZero(val) {
+    return val <= (1e-6) && val >= -(1e-6);
+}
+
 
 
 
@@ -18056,6 +18138,8 @@ var graphic = (Object.freeze || Object)({
 	clipPointsByRect: clipPointsByRect,
 	clipRectByRect: clipRectByRect,
 	createIcon: createIcon,
+	linePolygonIntersect: linePolygonIntersect,
+	lineLineIntersect: lineLineIntersect,
 	Group: Group,
 	Image: ZImage,
 	Text: Text,
@@ -45824,7 +45908,7 @@ function makeInvoker(methodName) {
 function mapNotExistsError(mapName) {
     if (__DEV__) {
         console.error(
-            'Map ' + mapName + ' not exists. You can download map file on http://echarts.baidu.com/download-map.html'
+            'Map ' + mapName + ' not exists. The GeoJSON of the map must be provided.'
         );
     }
 }
@@ -49038,11 +49122,6 @@ function addChild(child, node) {
 * under the License.
 */
 
-/**
- * @file Create data struct and define tree view's series model
- * @author Deqing Li(annong035@gmail.com)
- */
-
 SeriesModel.extend({
 
     type: 'series.tree',
@@ -49552,11 +49631,6 @@ function defaultSeparation(node1, node2) {
 * under the License.
 */
 
-/**
- * @file This file used to draw tree view.
- * @author Deqing Li(annong035@gmail.com)
- */
-
 extendChartView({
 
     type: 'tree',
@@ -50043,11 +50117,6 @@ function getEdgeShape(seriesScope, sourceLayout, targetLayout) {
 * under the License.
 */
 
-/**
- * @file Register the actions of the tree
- * @author Deqing Li(annong035@gmail.com)
- */
-
 registerAction({
     type: 'treeExpandAndCollapse',
     event: 'treeExpandAndCollapse',
@@ -53518,13 +53587,6 @@ registerLayout(treemapLayout);
 * under the License.
 */
 
-/**
- * Graph data structure
- *
- * @module echarts/data/Graph
- * @author Yi Shen(https://www.github.com/pissang)
- */
-
 // id may be function name of Object, add a prefix to avoid this problem.
 function generateNodeKey(id) {
     return '_EC_' + id;
@@ -60911,11 +60973,6 @@ registerVisual(parallelVisual);
 * under the License.
 */
 
-/**
- * @file Get initial data and define sankey view's series model
- * @author Deqing Li(annong035@gmail.com)
- */
-
 var SankeySeries = SeriesModel.extend({
 
     type: 'series.sankey',
@@ -61121,11 +61178,6 @@ var SankeySeries = SeriesModel.extend({
 * under the License.
 */
 
-/**
- * @file  The file used to draw sankey diagram.
- * @author  Deqing Li(annong035@gmail.com)
- */
-
 var nodeOpacityPath$1 = ['itemStyle', 'opacity'];
 var lineOpacityPath$1 = ['lineStyle', 'opacity'];
 
@@ -61544,11 +61596,6 @@ function createGridClipShape$2(rect, seriesModel, cb) {
 * under the License.
 */
 
-/**
- * @file The interactive action of sankey view
- * @author Deqing Li(annong035@gmail.com)
- */
-
 registerAction({
     type: 'dragNode',
     event: 'dragNode',
@@ -61579,11 +61626,6 @@ registerAction({
 * under the License.
 */
 
-/**
- * @file The layout algorithm of sankey diagram.
- * @author Deqing Li(annong035@gmail.com)
- */
-
 var sankeyLayout = function (ecModel, api, payload) {
 
     ecModel.eachSeriesByType('sankey', function (seriesModel) {
@@ -62081,11 +62123,6 @@ function computeEdgeDepths(nodes, orient) {
 * under the License.
 */
 
-/**
- * @file Visual encoding for sankey view
- * @author  Deqing Li(annong035@gmail.com)
- */
-
 var sankeyVisual = function (ecModel, payload) {
     ecModel.eachSeriesByType('sankey', function (seriesModel) {
         var graph = seriesModel.getGraph();
@@ -65375,14 +65412,6 @@ SeriesModel.extend({
 
 /* global Uint8ClampedArray */
 
-/**
- * @file defines echarts Heatmap Chart
- * @author Ovilia (me@zhangwenli.com)
- * Inspired by https://github.com/mourner/simpleheat
- *
- * @module
- */
-
 var GRADIENT_LEVELS = 256;
 
 /**
@@ -69401,11 +69430,6 @@ extendComponentView({
 * under the License.
 */
 
-/**
- * @file  Define the themeRiver view's series model
- * @author Deqing Li(annong035@gmail.com)
- */
-
 var DATA_NAME_INDEX = 2;
 
 var ThemeRiverSeries = SeriesModel.extend({
@@ -69692,11 +69716,6 @@ var ThemeRiverSeries = SeriesModel.extend({
 * under the License.
 */
 
-/**
- * @file  The file used to draw themeRiver view
- * @author  Deqing Li(annong035@gmail.com)
- */
-
 extendChartView({
 
     type: 'themeRiver',
@@ -69875,11 +69894,6 @@ function createGridClipShape$3(rect, seriesModel, cb) {
 * under the License.
 */
 
-/**
- * @file  Using layout algorithm transform the raw data to layout information.
- * @author Deqing Li(annong035@gmail.com)
- */
-
 var themeRiverLayout = function (ecModel, api) {
 
     ecModel.eachSeriesByType('themeRiver', function (seriesModel) {
@@ -70034,11 +70048,6 @@ function computeBaseline(data) {
 * under the License.
 */
 
-/**
- * @file Visual encoding for themeRiver view
- * @author Deqing Li(annong035@gmail.com)
- */
-
 var themeRiverVisual = function (ecModel) {
     ecModel.eachSeriesByType('themeRiver', function (seriesModel) {
         var data = seriesModel.getData();
@@ -75408,11 +75417,6 @@ extendComponentView({
 * under the License.
 */
 
-/**
- * @file calendar.js
- * @author dxh
- */
-
 /*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
@@ -77104,25 +77108,6 @@ DataView.prototype.onclick = function (ecModel, api) {
     !model.get('readOnly') && buttonContainer.appendChild(refreshButton);
     buttonContainer.appendChild(closeButton);
 
-    // http://stackoverflow.com/questions/6637341/use-tab-to-indent-in-textarea
-    addEventListener(textarea, 'keydown', function (e) {
-        if ((e.keyCode || e.which) === 9) {
-            // get caret position/selection
-            var val = this.value;
-            var start = this.selectionStart;
-            var end = this.selectionEnd;
-
-            // set textarea value to: text before caret + tab + text after caret
-            this.value = val.substring(0, start) + ITEM_SPLITER + val.substring(end);
-
-            // put caret at right position again
-            this.selectionStart = this.selectionEnd = start + 1;
-
-            // prevent the focus lose
-            stop(e);
-        }
-    });
-
     root.appendChild(header);
     root.appendChild(viewMain);
     root.appendChild(buttonContainer);
@@ -80050,7 +80035,9 @@ TooltipContent.prototype = {
         var el = this.el;
 
         el.style.cssText = gCssText + assembleCssText(tooltipModel)
+            // Because of the reason described in:
             // http://stackoverflow.com/questions/21125587/css3-transition-not-working-in-chrome-anymore
+            // we should set initial value to `left` and `top`.
             + ';left:' + this._x + 'px;top:' + this._y + 'px;'
             + (tooltipModel.get('extraCssText') || '');
 
@@ -81551,10 +81538,10 @@ var selector = {
                 || contain$1(points, x, y + height)
                 || contain$1(points, x + width, y + height)
                 || BoundingRect.create(itemLayout).contain(p[0], p[1])
-                || lineIntersectPolygon(x, y, x + width, y, points)
-                || lineIntersectPolygon(x, y, x, y + height, points)
-                || lineIntersectPolygon(x + width, y, x + width, y + height, points)
-                || lineIntersectPolygon(x, y + height, x + width, y + height, points)
+                || linePolygonIntersect(x, y, x + width, y, points)
+                || linePolygonIntersect(x, y, x, y + height, points)
+                || linePolygonIntersect(x + width, y, x + width, y + height, points)
+                || linePolygonIntersect(x, y + height, x + width, y + height, points)
             ) {
                 return true;
             }
@@ -81595,42 +81582,6 @@ function inLineRange(p, range) {
     return range[0] <= p && p <= range[1];
 }
 
-function lineIntersectPolygon(lx, ly, l2x, l2y, points) {
-    for (var i = 0, p2 = points[points.length - 1]; i < points.length; i++) {
-        var p = points[i];
-        if (lineIntersect(lx, ly, l2x, l2y, p[0], p[1], p2[0], p2[1])) {
-            return true;
-        }
-        p2 = p;
-    }
-}
-
-// Code from <http://blog.csdn.net/rickliuxiao/article/details/6259322> with some fix.
-// See <https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection>
-function lineIntersect(a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y) {
-    var delta = determinant$1(a2x - a1x, b1x - b2x, a2y - a1y, b1y - b2y);
-    if (nearZero(delta)) { // parallel
-        return false;
-    }
-    var namenda = determinant$1(b1x - a1x, b1x - b2x, b1y - a1y, b1y - b2y) / delta;
-    if (namenda < 0 || namenda > 1) {
-        return false;
-    }
-    var miu = determinant$1(a2x - a1x, b1x - a1x, a2y - a1y, b1y - a1y) / delta;
-    if (miu < 0 || miu > 1) {
-        return false;
-    }
-    return true;
-}
-
-function nearZero(val) {
-    return val <= (1e-6) && val >= -(1e-6);
-}
-
-function determinant$1(v1, v2, v3, v4) {
-    return v1 * v4 - v2 * v3;
-}
-
 /*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
diff --git a/en/dist/echarts.js.map b/en/dist/echarts.js.map
index 39679e9..61755f5 100644
--- a/en/dist/echarts.js.map
+++ b/en/dist/echarts.js.map
@@ -1 +1 @@
-{"version":3,"file":"echarts.js","sources":["../src/config.js","../../zrender/src/core/guid.js","../../zrender/src/core/env.js","../../zrender/src/core/util.js","../../zrender/src/core/vector.js","../../zrender/src/mixin/Draggable.js","../../zrender/src/mixin/Eventful.js","../../zrender/src/core/fourPointsTransform.js","../../zrender/src/core/event.js","../../zrender/src/core/GestureMgr.js","../../zrender/src/Handler.js","../../zrender/src/core/matrix.js","../../zrender/src/mixin/Transfo [...]
\ No newline at end of file
+{"version":3,"file":"echarts.js","sources":["../src/config.js","../../zrender/src/core/guid.js","../../zrender/src/core/env.js","../../zrender/src/core/util.js","../../zrender/src/core/vector.js","../../zrender/src/mixin/Draggable.js","../../zrender/src/mixin/Eventful.js","../../zrender/src/core/fourPointsTransform.js","../../zrender/src/core/event.js","../../zrender/src/core/GestureMgr.js","../../zrender/src/Handler.js","../../zrender/src/core/matrix.js","../../zrender/src/mixin/Transfo [...]
\ No newline at end of file
diff --git a/en/dist/echarts.min.js b/en/dist/echarts.min.js
index 1509146..abab2b0 100644
--- a/en/dist/echarts.min.js
+++ b/en/dist/echarts.min.js
@@ -19,4 +19,4 @@
 */
 
 
-!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";var e=2311,n=function(){return e++},v="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasS [...]
+!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";var e=2311,n=function(){return e++},v="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasS [...]
diff --git a/en/dist/echarts.simple.js b/en/dist/echarts.simple.js
index e929465..8e77455 100644
--- a/en/dist/echarts.simple.js
+++ b/en/dist/echarts.simple.js
@@ -17609,6 +17609,88 @@ function createIcon(iconStr, opt, rect) {
     }
 }
 
+/**
+ * Return `true` if the given line (line `a`) and the given polygon
+ * are intersect.
+ * Note that we do not count colinear as intersect here because no
+ * requirement for that. We could do that if required in future.
+ *
+ * @param {number} a1x
+ * @param {number} a1y
+ * @param {number} a2x
+ * @param {number} a2y
+ * @param {Array.<Array.<number>>} points Points of the polygon.
+ * @return {boolean}
+ */
+function linePolygonIntersect(a1x, a1y, a2x, a2y, points) {
+    for (var i = 0, p2 = points[points.length - 1]; i < points.length; i++) {
+        var p = points[i];
+        if (lineLineIntersect(a1x, a1y, a2x, a2y, p[0], p[1], p2[0], p2[1])) {
+            return true;
+        }
+        p2 = p;
+    }
+}
+
+/**
+ * Return `true` if the given two lines (line `a` and line `b`)
+ * are intersect.
+ * Note that we do not count colinear as intersect here because no
+ * requirement for that. We could do that if required in future.
+ *
+ * @param {number} a1x
+ * @param {number} a1y
+ * @param {number} a2x
+ * @param {number} a2y
+ * @param {number} b1x
+ * @param {number} b1y
+ * @param {number} b2x
+ * @param {number} b2y
+ * @return {boolean}
+ */
+function lineLineIntersect(a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y) {
+    // let `vec_m` to be `vec_a2 - vec_a1` and `vec_n` to be `vec_b2 - vec_b1`.
+    var mx = a2x - a1x;
+    var my = a2y - a1y;
+    var nx = b2x - b1x;
+    var ny = b2y - b1y;
+
+    // `vec_m` and `vec_n` are parallel iff
+    //     exising `k` such that `vec_m = k · vec_n`, equivalent to `vec_m X vec_n = 0`.
+    var nmCrossProduct = crossProduct2d(nx, ny, mx, my);
+    if (nearZero(nmCrossProduct)) {
+        return false;
+    }
+
+    // `vec_m` and `vec_n` are intersect iff
+    //     existing `p` and `q` in [0, 1] such that `vec_a1 + p * vec_m = vec_b1 + q * vec_n`,
+    //     such that `q = ((vec_a1 - vec_b1) X vec_m) / (vec_n X vec_m)`
+    //           and `p = ((vec_a1 - vec_b1) X vec_n) / (vec_n X vec_m)`.
+    var b1a1x = a1x - b1x;
+    var b1a1y = a1y - b1y;
+    var q = crossProduct2d(b1a1x, b1a1y, mx, my) / nmCrossProduct;
+    if (q < 0 || q > 1) {
+        return false;
+    }
+    var p = crossProduct2d(b1a1x, b1a1y, nx, ny) / nmCrossProduct;
+    if (p < 0 || p > 1) {
+        return false;
+    }
+
+    return true;
+}
+
+/**
+ * Cross product of 2-dimension vector.
+ */
+function crossProduct2d(x1, y1, x2, y2) {
+    return x1 * y2 - x2 * y1;
+}
+
+function nearZero(val) {
+    return val <= (1e-6) && val >= -(1e-6);
+}
+
 
 
 
@@ -17643,6 +17725,8 @@ var graphic = (Object.freeze || Object)({
 	clipPointsByRect: clipPointsByRect,
 	clipRectByRect: clipRectByRect,
 	createIcon: createIcon,
+	linePolygonIntersect: linePolygonIntersect,
+	lineLineIntersect: lineLineIntersect,
 	Group: Group,
 	Image: ZImage,
 	Text: Text,
diff --git a/en/dist/echarts.simple.min.js b/en/dist/echarts.simple.min.js
index 0646c41..c2811ea 100644
--- a/en/dist/echarts.simple.min.js
+++ b/en/dist/echarts.simple.min.js
@@ -19,4 +19,4 @@
 */
 
 
-!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";var e=2311,n=function(){return e++},m="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasS [...]
+!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";var e=2311,n=function(){return e++},m="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasS [...]
diff --git a/en/dist/extension/dataTool.js b/en/dist/extension/dataTool.js
index 84714a8..ad4531a 100644
--- a/en/dist/extension/dataTool.js
+++ b/en/dist/extension/dataTool.js
@@ -317,8 +317,12 @@ function map(obj, cb, context) {
 * under the License.
 */
 
-// GEXF File Parser
-// http://gexf.net/1.2draft/gexf-12draft-primer.pdf
+/**
+ * This is a parse of GEXF.
+ *
+ * The spec of GEXF:
+ * https://gephi.org/gexf/1.2draft/gexf-12draft-primer.pdf
+ */
 
 function parse(xml) {
     var doc;
diff --git a/en/dist/extension/dataTool.js.map b/en/dist/extension/dataTool.js.map
index f4095a3..62f178d 100644
--- a/en/dist/extension/dataTool.js.map
+++ b/en/dist/extension/dataTool.js.map
@@ -1 +1 @@
-{"version":3,"file":"dataTool.js","sources":["../../../zrender/src/core/util.js","../../extension-src/dataTool/gexf.js","../../src/util/number.js","../../extension-src/dataTool/prepareBoxplotData.js","../../extension-src/dataTool/index.js"],"sourcesContent":["/**\n * @module zrender/core/util\n */\n\n// 用于处理merge时无法遍历Date等对象的问题\nvar BUILTIN_OBJECT = {\n    '[object Function]': 1,\n    '[object RegExp]': 1,\n    '[object Date]': 1,\n    '[object Error]': 1,\n    '[object CanvasGradient]': [...]
\ No newline at end of file
+{"version":3,"file":"dataTool.js","sources":["../../../zrender/src/core/util.js","../../extension-src/dataTool/gexf.js","../../src/util/number.js","../../extension-src/dataTool/prepareBoxplotData.js","../../extension-src/dataTool/index.js"],"sourcesContent":["/**\n * @module zrender/core/util\n */\n\n// 用于处理merge时无法遍历Date等对象的问题\nvar BUILTIN_OBJECT = {\n    '[object Function]': 1,\n    '[object RegExp]': 1,\n    '[object Date]': 1,\n    '[object Error]': 1,\n    '[object CanvasGradient]': [...]
\ No newline at end of file
diff --git a/en/download-extension.html b/en/download-extension.html
index 3a4bd8c..1fe2816 100644
--- a/en/download-extension.html
+++ b/en/download-extension.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
diff --git a/en/download-map.html b/en/download-map.html
index 6755fec..4f1b5d5 100644
--- a/en/download-map.html
+++ b/en/download-map.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
diff --git a/en/download-theme.html b/en/download-theme.html
index b72e561..33256b9 100644
--- a/en/download-theme.html
+++ b/en/download-theme.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
diff --git a/en/download.html b/en/download.html
index f6fe774..7efba59 100644
--- a/en/download.html
+++ b/en/download.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
diff --git a/en/faq.html b/en/faq.html
index adc7bb9..9a644d8 100644
--- a/en/faq.html
+++ b/en/faq.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
diff --git a/en/feature.html b/en/feature.html
index f45abac..2f555e1 100644
--- a/en/feature.html
+++ b/en/feature.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
diff --git a/en/index.html b/en/index.html
index 692c639..8372b57 100644
--- a/en/index.html
+++ b/en/index.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
@@ -19,7 +19,7 @@
 <a class="github-button" href="https://github.com/apache/incubator-echarts" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star apache/incubator-echarts on GitHub">GitHub Stars</a></p></div></div><div id="feature-4" class="row feature-detail"><div class="col-sm-4 col"><h2>Brand-new v4.0</h2><p>Rendering ability for ten-million-level data</p><p>Supports both SVG and Canvas rendering</p><p>Seperates data and style configuring</p><p>Accessibility supports</p>< [...]
 </script></div></div></section><section id="publication"><div class="container"><div class="col-sm-8 col"><h2>ECharts: A Declarative Framework for Rapid Construction of Web-based Visualization</h2><p class="note"><i class="note-icon"><img classs="lazy" data-src="./images/note.svg" /></i> Please cite the following paper whenever you use ECharts in your R&D projects, products, research papers, technical reports, news reports, books, presentations, teaching, patents, and other related intel [...]
     elements_selector: ".lazy"
-};</script><script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@12.0.0/dist/lazyload.min.js"></script><script src="./js/index.js?_v_=1567956878240"></script><script async defer src="https://buttons.github.io/buttons.js"></script><!-- Baidu Tongji--><script type="text/javascript">var _hmt = _hmt || [];
+};</script><script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@12.0.0/dist/lazyload.min.js"></script><script src="./js/index.js?_v_=1568642955357"></script><script async defer src="https://buttons.github.io/buttons.js"></script><!-- Baidu Tongji--><script type="text/javascript">var _hmt = _hmt || [];
 (function() {
 var hm = document.createElement("script");
 hm.src = "https://hm.baidu.com/hm.js?54b918eee37cb8a7045f0fd0f0b24395";
diff --git a/en/js/download.js b/en/js/download.js
index cb0201b..cafdff6 100644
--- a/en/js/download.js
+++ b/en/js/download.js
@@ -1 +1 @@
-for(var param=[{published_at:"2019-03-21T10:27:59Z",prerelease:!1,name:"4.2.1"},{published_at:"2018-08-04T12:55:30Z",prerelease:!1,name:"4.1.0"}],table=document.getElementById("download-table"),i=0;i<param.length;++i)if(!param[i].prerelease){var time=new Date(param[i].published_at);if(time.getTime()>new Date("2018-05-21")){var line=document.createElement("tr"),version=param[i].name,versionEl=document.createElement("td");versionEl.innerHTML=param[i].name,line.appendChild(versionEl);var da [...]
\ No newline at end of file
+for(var param=[{publishedAt:"2019-09-16T15:57:00Z",prerelease:!1,name:"4.3.0"},{publishedAt:"2019-03-21T10:27:59Z",prerelease:!1,name:"4.2.1"},{publishedAt:"2018-08-04T12:55:30Z",prerelease:!1,name:"4.1.0"}],table=document.getElementById("download-table"),i=0;i<param.length;++i)if(!param[i].prerelease){var time=new Date(param[i].publishedAt);if(time.getTime()>new Date("2018-05-21")){var line=document.createElement("tr"),version=param[i].name,versionEl=document.createElement("td");version [...]
\ No newline at end of file
diff --git a/en/maillist.html b/en/maillist.html
index d340b2b..3322c18 100644
--- a/en/maillist.html
+++ b/en/maillist.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
diff --git a/en/option-gl.html b/en/option-gl.html
index d798c69..6ee31d6 100644
--- a/en/option-gl.html
+++ b/en/option-gl.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
@@ -6,7 +6,7 @@
         + '@font-face {font-family:"noto-light";src:local("Microsoft Yahei");}';
     document.head.insertBefore(el, document.getElementById('font-hack'));
 }
-</script><title>ECharts Documentation</title><link rel="stylesheet" type="text/css" href="css/ecOption.css?_v_=1567956878240"><link rel="stylesheet" type="text/css" href="vendors/prettify/prettify.css"><link rel="stylesheet" type="text/css" href="vendors/perfect-scrollbar/0.6.8/css/perfect-scrollbar.min.css"><link rel="stylesheet" type="text/css" href="vendors/jquery-autocomplete/jquery.auto-complete.css"><link rel="stylesheet" type="text/css" href="vendors/twentytwenty/twentytwenty.css" [...]
+</script><title>ECharts Documentation</title><link rel="stylesheet" type="text/css" href="css/ecOption.css?_v_=1568642955357"><link rel="stylesheet" type="text/css" href="vendors/prettify/prettify.css"><link rel="stylesheet" type="text/css" href="vendors/perfect-scrollbar/0.6.8/css/perfect-scrollbar.min.css"><link rel="stylesheet" type="text/css" href="vendors/jquery-autocomplete/jquery.auto-complete.css"><link rel="stylesheet" type="text/css" href="vendors/twentytwenty/twentytwenty.css" [...]
 <!--[if (gt IE 8)|!(IE)]><body class="undefined"></body><![endif]--><div id="apache-banner"><div class="txt"><p>Apache ECharts is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator.</p><p>We are working on redirecting this Website to <a href="https://echarts.apache.org" target="_blank">https://echarts.apache.org</a>. You may visit our new official Website now.</p></div><a href="https://echarts.apache.org" target="_blank" onclick="lo [...]
     pageName: 'option-gl',
     initHash: 'globe',
@@ -16,7 +16,7 @@
 var vendorPath = '../vendors';
 
 define('globalArgs', extend({
-    version: '1567956878240',
+    version: '1568642955357',
     basePath: './',
     // Schema url is added by each doc page
     schemaUrl: '',
@@ -43,7 +43,7 @@ require.config({
         hasher: vendorPath + '/hasher/1.2.0/hasher.min',
         perfectScrollbar: vendorPath + '/perfect-scrollbar/0.6.8/js/perfect-scrollbar'
     },
-    urlArgs: '_v_=1567956878240'
+    urlArgs: '_v_=1568642955357'
 });
 
 require(['docTool/main'], function (main) {
diff --git a/en/option.html b/en/option.html
index ec15178..fea1b0e 100644
--- a/en/option.html
+++ b/en/option.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
@@ -6,7 +6,7 @@
         + '@font-face {font-family:"noto-light";src:local("Microsoft Yahei");}';
     document.head.insertBefore(el, document.getElementById('font-hack'));
 }
-</script><title>ECharts Documentation</title><link rel="stylesheet" type="text/css" href="css/ecOption.css?_v_=1567956878240"><link rel="stylesheet" type="text/css" href="vendors/prettify/prettify.css"><link rel="stylesheet" type="text/css" href="vendors/perfect-scrollbar/0.6.8/css/perfect-scrollbar.min.css"><link rel="stylesheet" type="text/css" href="vendors/jquery-autocomplete/jquery.auto-complete.css"><link rel="stylesheet" type="text/css" href="vendors/twentytwenty/twentytwenty.css" [...]
+</script><title>ECharts Documentation</title><link rel="stylesheet" type="text/css" href="css/ecOption.css?_v_=1568642955357"><link rel="stylesheet" type="text/css" href="vendors/prettify/prettify.css"><link rel="stylesheet" type="text/css" href="vendors/perfect-scrollbar/0.6.8/css/perfect-scrollbar.min.css"><link rel="stylesheet" type="text/css" href="vendors/jquery-autocomplete/jquery.auto-complete.css"><link rel="stylesheet" type="text/css" href="vendors/twentytwenty/twentytwenty.css" [...]
 <!--[if (gt IE 8)|!(IE)]><body class="undefined"></body><![endif]--><div id="apache-banner"><div class="txt"><p>Apache ECharts is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator.</p><p>We are working on redirecting this Website to <a href="https://echarts.apache.org" target="_blank">https://echarts.apache.org</a>. You may visit our new official Website now.</p></div><a href="https://echarts.apache.org" target="_blank" onclick="lo [...]
     pageName: 'option',
     initHash: 'title',
@@ -16,7 +16,7 @@
 var vendorPath = '../vendors';
 
 define('globalArgs', extend({
-    version: '1567956878240',
+    version: '1568642955357',
     basePath: './',
     // Schema url is added by each doc page
     schemaUrl: '',
@@ -43,7 +43,7 @@ require.config({
         hasher: vendorPath + '/hasher/1.2.0/hasher.min',
         perfectScrollbar: vendorPath + '/perfect-scrollbar/0.6.8/js/perfect-scrollbar'
     },
-    urlArgs: '_v_=1567956878240'
+    urlArgs: '_v_=1568642955357'
 });
 
 require(['docTool/main'], function (main) {
diff --git a/en/option3.html b/en/option3.html
index 08fd989..a7de941 100644
--- a/en/option3.html
+++ b/en/option3.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
diff --git a/en/tutorial.html b/en/tutorial.html
index bda074b..070ca33 100644
--- a/en/tutorial.html
+++ b/en/tutorial.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
+<!DOCTYPE html><html lang="en-US"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="no"><meta name="description" content="ECharts, a powerful, interactive charting and visualization library for browser"><link rel="shortcut icon" href="images/favicon.png"><link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"><!--  [...]
 </script><script type="text/javascript" src="./vendors/pace/pace.min.js"></script><script id="font-hack" type="text/javascript">if (/windows/i.test(navigator.userAgent)) {
     var el = document.createElement('style');
     el.innerHTML = ''
@@ -6,7 +6,7 @@
         + '@font-face {font-family:"noto-light";src:local("Microsoft Yahei");}';
     document.head.insertBefore(el, document.getElementById('font-hack'));
 }
-</script><title>ECharts Documentation</title><link rel="stylesheet" type="text/css" href="css/ecOption.css?_v_=1567956878240"><link rel="stylesheet" type="text/css" href="vendors/prettify/prettify.css"><link rel="stylesheet" type="text/css" href="vendors/perfect-scrollbar/0.6.8/css/perfect-scrollbar.min.css"><link rel="stylesheet" type="text/css" href="vendors/jquery-autocomplete/jquery.auto-complete.css"><link rel="stylesheet" type="text/css" href="vendors/twentytwenty/twentytwenty.css" [...]
+</script><title>ECharts Documentation</title><link rel="stylesheet" type="text/css" href="css/ecOption.css?_v_=1568642955357"><link rel="stylesheet" type="text/css" href="vendors/prettify/prettify.css"><link rel="stylesheet" type="text/css" href="vendors/perfect-scrollbar/0.6.8/css/perfect-scrollbar.min.css"><link rel="stylesheet" type="text/css" href="vendors/jquery-autocomplete/jquery.auto-complete.css"><link rel="stylesheet" type="text/css" href="vendors/twentytwenty/twentytwenty.css" [...]
 <!--[if (gt IE 8)|!(IE)]><body class="undefined"></body><![endif]--><div id="apache-banner"><div class="txt"><p>Apache ECharts is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator.</p><p>We are working on redirecting this Website to <a href="https://echarts.apache.org" target="_blank">https://echarts.apache.org</a>. You may visit our new official Website now.</p></div><a href="https://echarts.apache.org" target="_blank" onclick="lo [...]
 
 window.globalArgsExtra = {
@@ -30,7 +30,7 @@ window.globalArgsExtra = {
 var vendorPath = '../vendors';
 
 define('globalArgs', extend({
-    version: '1567956878240',
+    version: '1568642955357',
     basePath: './',
     // Schema url is added by each doc page
     schemaUrl: '',
@@ -57,7 +57,7 @@ require.config({
         hasher: vendorPath + '/hasher/1.2.0/hasher.min',
         perfectScrollbar: vendorPath + '/perfect-scrollbar/0.6.8/js/perfect-scrollbar'
     },
-    urlArgs: '_v_=1567956878240'
+    urlArgs: '_v_=1568642955357'
 });
 
 require(['docTool/main'], function (main) {
diff --git a/examples/en/editor.html b/examples/en/editor.html
index a984f62..5461ece 100644
--- a/examples/en/editor.html
+++ b/examples/en/editor.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" type="text/css" href="https://echarts.apache.org/examples/vendors/bootstrap/css/bootstrap.css"><link rel="shortcut icon" href="https://echarts.apache.org/examples/images/favicon.png"><!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries--><!--[if lt IE 9]><script src="h [...]
+<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" type="text/css" href="https://echarts.apache.org/examples/vendors/bootstrap/css/bootstrap.css"><link rel="shortcut icon" href="https://echarts.apache.org/examples/images/favicon.png"><!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries--><!--[if lt IE 9]><script src="h [...]
 </script></head><body><div id="apache-banner"><div class="txt"><p>Apache ECharts is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator.</p><p>We are working on redirecting this Website to <a href="https://echarts.apache.org" target="_blank">https://echarts.apache.org</a>. You may visit our new official Website now for the latest information.</p></div><a href="https://echarts.apache.org" target="_blank" onclick="logApache()" class="b [...]
 var menu = document.getElementById(selector);
 if (menu) {
@@ -26,7 +26,7 @@ if (menu) {
 }
 
 window.ROOT_PATH = 'https://echarts.apache.org/examples/';
-</script><script type="text/javascript" src="https://echarts.apache.org/examples/vendors/dat.gui.min.js"></script><script type="text/javascript" src="https://echarts.apache.org/examples/vendors/echarts/echarts.min.js?_v_=1567956857904"></script><script type="text/javascript" src="https://echarts.apache.org/examples/vendors/echarts-stat/ecStat.min.js?_v_=1567956857904"></script><script type="text/javascript" src="https://echarts.apache.org/examples/vendors/echarts/map/js/china.js?_v_=1567 [...]
+</script><script type="text/javascript" src="https://echarts.apache.org/examples/vendors/dat.gui.min.js"></script><script type="text/javascript" src="https://echarts.apache.org/examples/vendors/echarts/echarts.min.js?_v_=1568642925059"></script><script type="text/javascript" src="https://echarts.apache.org/examples/vendors/echarts-stat/ecStat.min.js?_v_=1568642925059"></script><script type="text/javascript" src="https://echarts.apache.org/examples/vendors/echarts/map/js/china.js?_v_=1568 [...]
 (function() {
 var hm = document.createElement("script");
 hm.src = "https://hm.baidu.com/hm.js?54b918eee37cb8a7045f0fd0f0b24395";
diff --git a/examples/en/index.html b/examples/en/index.html
index ecd1d37..c97770b 100644
--- a/examples/en/index.html
+++ b/examples/en/index.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" type="text/css" href="https://echarts.apache.org/examples/vendors/bootstrap/css/bootstrap.css"><link rel="shortcut icon" href="https://echarts.apache.org/examples/images/favicon.png"><!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries--><!--[if lt IE 9]><script src="h [...]
+<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" type="text/css" href="https://echarts.apache.org/examples/vendors/bootstrap/css/bootstrap.css"><link rel="shortcut icon" href="https://echarts.apache.org/examples/images/favicon.png"><!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries--><!--[if lt IE 9]><script src="h [...]
 </script></head><body><div id="apache-banner"><div class="txt"><p>Apache ECharts is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator.</p><p>We are working on redirecting this Website to <a href="https://echarts.apache.org" target="_blank">https://echarts.apache.org</a>. You may visit our new official Website now for the latest information.</p></div><a href="https://echarts.apache.org" target="_blank" onclick="logApache()" class="b [...]
 var menu = document.getElementById(selector);
 if (menu) {
@@ -22,7 +22,7 @@ if (menu) {
 }
 
 window.ROOT_PATH = 'https://echarts.apache.org/examples/';
-</script><script type="text/javascript" src="https://echarts.apache.org/examples/vendors/waypoint.js"></script><script type="text/javascript" src="https://echarts.apache.org/examples/vendors/jquery.lazyload.min.js"></script><script type="text/javascript" src="https://echarts.apache.org/examples/javascripts/chart-list-data.js?_v_=1567956857904"></script><script type="text/javascript" src="https://echarts.apache.org/examples/javascripts/chart-list-data-gl.js?_v_=1567956857904"></script><sc [...]
+</script><script type="text/javascript" src="https://echarts.apache.org/examples/vendors/waypoint.js"></script><script type="text/javascript" src="https://echarts.apache.org/examples/vendors/jquery.lazyload.min.js"></script><script type="text/javascript" src="https://echarts.apache.org/examples/javascripts/chart-list-data.js?_v_=1568642925059"></script><script type="text/javascript" src="https://echarts.apache.org/examples/javascripts/chart-list-data-gl.js?_v_=1568642925059"></script><sc [...]
 (function() {
 var hm = document.createElement("script");
 hm.src = "https://hm.baidu.com/hm.js?54b918eee37cb8a7045f0fd0f0b24395";
diff --git a/examples/en/view.html b/examples/en/view.html
index dfbc4cb..1cc98b8 100644
--- a/examples/en/view.html
+++ b/examples/en/view.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" type="text/css" href="https://echarts.apache.org/examples/vendors/bootstrap/css/bootstrap.css"><link rel="shortcut icon" href="https://echarts.apache.org/examples/images/favicon.png"><!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries--><!--[if lt IE 9]><script src="h [...]
+<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" type="text/css" href="https://echarts.apache.org/examples/vendors/bootstrap/css/bootstrap.css"><link rel="shortcut icon" href="https://echarts.apache.org/examples/images/favicon.png"><!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries--><!--[if lt IE 9]><script src="h [...]
 </script></head><body><div id="apache-banner"><div class="txt"><p>Apache ECharts is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator.</p><p>We are working on redirecting this Website to <a href="https://echarts.apache.org" target="_blank">https://echarts.apache.org</a>. You may visit our new official Website now for the latest information.</p></div><a href="https://echarts.apache.org" target="_blank" onclick="logApache()" class="b [...]
     if (lang === 'en') {
         if (location.hostname !== 'echarts.apache.org') {
@@ -17,7 +17,7 @@
 }
 
 window.ROOT_PATH = 'https://echarts.apache.org/examples/';
-</script><script type="text/javascript" src="https://echarts.apache.org/examples/vendors/dat.gui.min.js"></script><script type="text/javascript" src="https://echarts.apache.org/examples/vendors/echarts/echarts.min.js?_v_=1567956857904"></script><script type="text/javascript" src="https://echarts.apache.org/examples/vendors/echarts-stat/ecStat.min.js?_v_=1567956857904"></script><script id="echarts-js" type="text/javascript" src="https://echarts.apache.org/examples/vendors/echarts/map/js/c [...]
+</script><script type="text/javascript" src="https://echarts.apache.org/examples/vendors/dat.gui.min.js"></script><script type="text/javascript" src="https://echarts.apache.org/examples/vendors/echarts/echarts.min.js?_v_=1568642925059"></script><script type="text/javascript" src="https://echarts.apache.org/examples/vendors/echarts-stat/ecStat.min.js?_v_=1568642925059"></script><script id="echarts-js" type="text/javascript" src="https://echarts.apache.org/examples/vendors/echarts/map/js/c [...]
 (function() {
 var hm = document.createElement("script");
 hm.src = "https://hm.baidu.com/hm.js?54b918eee37cb8a7045f0fd0f0b24395";
diff --git a/examples/vendors/echarts/echarts.js b/examples/vendors/echarts/echarts.js
index 3d7ffca..e1af794 100644
--- a/examples/vendors/echarts/echarts.js
+++ b/examples/vendors/echarts/echarts.js
@@ -1616,21 +1616,138 @@ function on(eventful, event, query, handler, context, isOnce) {
 }
 
 /**
- * 事件辅助类
- * @module zrender/core/event
- * @author Kener (@Kener-林峰, kener.linfeng@gmail.com)
+ * The algoritm is learnt from
+ * https://franklinta.com/2014/09/08/computing-css-matrix3d-transforms/
+ * And we made some optimization for matrix inversion.
+ * Other similar approaches:
+ * "cv::getPerspectiveTransform", "Direct Linear Transformation".
  */
 
-var isDomLevel2 = (typeof window !== 'undefined') && !!window.addEventListener;
+var LN2 = Math.log(2);
 
-var MOUSE_EVENT_REG = /^(?:mouse|pointer|contextmenu|drag|drop)|click/;
+function determinant(rows, rank, rowStart, rowMask, colMask, detCache) {
+    var cacheKey = rowMask + '-' + colMask;
+    var fullRank = rows.length;
+
+    if (detCache.hasOwnProperty(cacheKey)) {
+        return detCache[cacheKey];
+    }
+
+    if (rank === 1) {
+        // In this case the colMask must be like: `11101111`. We can find the place of `0`.
+        var colStart = Math.round(Math.log(((1 << fullRank) - 1) & ~colMask) / LN2);
+        return rows[rowStart][colStart];
+    }
+
+    var subRowMask = rowMask | (1 << rowStart);
+    var subRowStart = rowStart + 1;
+    while (rowMask & (1 << subRowStart)) {
+        subRowStart++;
+    }
 
-function getBoundingClientRect(el) {
-    // BlackBerry 5, iOS 3 (original iPhone) don't have getBoundingRect
-    return el.getBoundingClientRect ? el.getBoundingClientRect() : {left: 0, top: 0};
+    var sum = 0;
+    for (var j = 0, colLocalIdx = 0; j < fullRank; j++) {
+        var colTag = 1 << j;
+        if (!(colTag & colMask)) {
+            sum += (colLocalIdx % 2 ? -1 : 1) * rows[rowStart][j]
+                // det(subMatrix(0, j))
+                * determinant(rows, rank - 1, subRowStart, subRowMask, colMask | colTag, detCache);
+            colLocalIdx++;
+        }
+    }
+
+    detCache[cacheKey] = sum;
+
+    return sum;
 }
 
-// `calculate` is optional, default false
+/**
+ * Usage:
+ * ```js
+ * var transformer = buildTransformer(
+ *     [10, 44, 100, 44, 100, 300, 10, 300],
+ *     [50, 54, 130, 14, 140, 330, 14, 220]
+ * );
+ * var out = [];
+ * transformer && transformer([11, 33], out);
+ * ```
+ *
+ * Notice: `buildTransformer` may take more than 10ms in some Android device.
+ *
+ * @param {Array.<number>} src source four points, [x0, y0, x1, y1, x2, y2, x3, y3]
+ * @param {Array.<number>} dest destination four points, [x0, y0, x1, y1, x2, y2, x3, y3]
+ * @return {Function} transformer If fail, return null/undefined.
+ */
+function buildTransformer(src, dest) {
+    var mA = [
+        [src[0], src[1], 1, 0, 0, 0, -dest[0] * src[0], -dest[0] * src[1]],
+        [0, 0, 0, src[0], src[1], 1, -dest[1] * src[0], -dest[1] * src[1]],
+        [src[2], src[3], 1, 0, 0, 0, -dest[2] * src[2], -dest[2] * src[3]],
+        [0, 0, 0, src[2], src[3], 1, -dest[3] * src[2], -dest[3] * src[3]],
+        [src[4], src[5], 1, 0, 0, 0, -dest[4] * src[4], -dest[4] * src[5]],
+        [0, 0, 0, src[4], src[5], 1, -dest[5] * src[4], -dest[5] * src[5]],
+        [src[6], src[7], 1, 0, 0, 0, -dest[6] * src[6], -dest[6] * src[7]],
+        [0, 0, 0, src[6], src[7], 1, -dest[7] * src[6], -dest[7] * src[7]]
+    ];
+
+    var detCache = {};
+    var det = determinant(mA, 8, 0, 0, 0, detCache);
+    if (det === 0) {
+        return;
+    }
+
+    // `invert(mA) * dest`, that is, `adj(mA) / det * dest`.
+    var vh = [];
+    for (var i = 0; i < 8; i++) {
+        for (var j = 0; j < 8; j++) {
+            vh[j] == null && (vh[j] = 0);
+            vh[j] += ((i + j) % 2 ? -1 : 1)
+                // det(subMatrix(i, j))
+                * determinant(mA, 7, i === 0 ? 1 : 0, 1 << i, 1 << j, detCache)
+                / det * dest[i];
+        }
+    }
+
+    return function (out, srcPointX, srcPointY) {
+        var pk = srcPointX * vh[6] + srcPointY * vh[7] + 1;
+        out[0] = (srcPointX * vh[0] + srcPointY * vh[1] + vh[2]) / pk;
+        out[1] = (srcPointX * vh[3] + srcPointY * vh[4] + vh[5]) / pk;
+    };
+}
+
+/**
+ * Utilities for mouse or touch events.
+ */
+
+var isDomLevel2 = (typeof window !== 'undefined') && !!window.addEventListener;
+
+var MOUSE_EVENT_REG = /^(?:mouse|pointer|contextmenu|drag|drop)|click/;
+var EVENT_SAVED_PROP = '___zrEVENTSAVED';
+var _calcOut = [];
+
+/**
+ * Get the `zrX` and `zrY`, which are relative to the top-left of
+ * the input `el`.
+ * CSS transform (2D & 3D) is supported.
+ *
+ * The strategy to fetch the coords:
+ * + If `calculate` is not set as `true`, users of this method should
+ * ensure that `el` is the same or the same size & location as `e.target`.
+ * Otherwise the result coords are probably not expected. Because we
+ * firstly try to get coords from e.offsetX/e.offsetY.
+ * + If `calculate` is set as `true`, the input `el` can be any element
+ * and we force to calculate the coords based on `el`.
+ * + The input `el` should be positionable (not position:static).
+ *
+ * The force `calculate` can be used in case like:
+ * When mousemove event triggered on ec tooltip, `e.target` is not `el`(zr painter.dom).
+ *
+ * @param {HTMLElement} el DOM element.
+ * @param {Event} e Mouse event or touch event.
+ * @param {Object} out Get `out.zrX` and `out.zrY` as the result.
+ * @param {boolean} [calculate=false] Whether to force calculate
+ *        the coordinates but not use ones provided by browser.
+ */
 function clientToLocal(el, e, out, calculate) {
     out = out || {};
 
@@ -1641,12 +1758,8 @@ function clientToLocal(el, e, out, calculate) {
     // (see http://www.jacklmoore.com/notes/mouse-position/)
     // In zr painter.dom, padding edge equals to border edge.
 
-    // FIXME
-    // When mousemove event triggered on ec tooltip, target is not zr painter.dom, and
-    // offsetX/Y is relative to e.target, where the calculation of zrX/Y via offsetX/Y
-    // is too complex. So css-transfrom dont support in this case temporarily.
     if (calculate || !env$1.canvasSupported) {
-        defaultGetZrXY(el, e, out);
+        calculateZrXY(el, e, out);
     }
     // Caution: In FireFox, layerX/layerY Mouse position relative to the closest positioned
     // ancestor element, so we should make sure el is positioned (e.g., not position:static).
@@ -1666,22 +1779,125 @@ function clientToLocal(el, e, out, calculate) {
     }
     // For some other device, e.g., IOS safari.
     else {
-        defaultGetZrXY(el, e, out);
+        calculateZrXY(el, e, out);
     }
 
     return out;
 }
 
-function defaultGetZrXY(el, e, out) {
-    // This well-known method below does not support css transform.
-    var box = getBoundingClientRect(el);
-    out.zrX = e.clientX - box.left;
-    out.zrY = e.clientY - box.top;
+function calculateZrXY(el, e, out) {
+    // BlackBerry 5, iOS 3 (original iPhone) don't have getBoundingRect.
+    if (el.getBoundingClientRect && env$1.domSupported) {
+        var ex = e.clientX;
+        var ey = e.clientY;
+
+        if (el.nodeName.toUpperCase() === 'CANVAS') {
+            // Original approach, which do not support CSS transform.
+            // marker can not be locationed in a canvas container
+            // (getBoundingClientRect is always 0). We do not support
+            // that input a pre-created canvas to zr while using css
+            // transform in iOS.
+            var box = el.getBoundingClientRect();
+            out.zrX = ex - box.left;
+            out.zrY = ey - box.top;
+            return;
+        }
+        else {
+            var saved = el[EVENT_SAVED_PROP] || (el[EVENT_SAVED_PROP] = {});
+            var transformer = preparePointerTransformer(prepareCoordMarkers(el, saved), saved);
+            if (transformer) {
+                transformer(_calcOut, ex, ey);
+                out.zrX = _calcOut[0];
+                out.zrY = _calcOut[1];
+                return;
+            }
+        }
+    }
+    out.zrX = out.zrY = 0;
+}
+
+function prepareCoordMarkers(el, saved) {
+    var markers = saved.markers;
+    if (markers) {
+        return markers;
+    }
+
+    markers = saved.markers = [];
+    var propLR = ['left', 'right'];
+    var propTB = ['top', 'bottom'];
+
+    for (var i = 0; i < 4; i++) {
+        var marker = document.createElement('div');
+        var stl = marker.style;
+        var idxLR = i % 2;
+        var idxTB = (i >> 1) % 2;
+        stl.cssText = [
+            'position:absolute',
+            'visibility: hidden',
+            'padding: 0',
+            'margin: 0',
+            'border-width: 0',
+            'width:0',
+            'height:0',
+            // 'width: 5px',
+            // 'height: 5px',
+            propLR[idxLR] + ':0',
+            propTB[idxTB] + ':0',
+            propLR[1 - idxLR] + ':auto',
+            propTB[1 - idxTB] + ':auto',
+            ''
+        ].join('!important;');
+        el.appendChild(marker);
+        markers.push(marker);
+    }
+
+    return markers;
+}
+
+function preparePointerTransformer(markers, saved) {
+    var transformer = saved.transformer;
+    var oldSrcCoords = saved.srcCoords;
+    var useOld = true;
+    var srcCoords = [];
+    var destCoords = [];
+
+    for (var i = 0; i < 4; i++) {
+        var rect = markers[i].getBoundingClientRect();
+        var ii = 2 * i;
+        var x = rect.left;
+        var y = rect.top;
+        srcCoords.push(x, y);
+        useOld &= oldSrcCoords && x === oldSrcCoords[ii] && y === oldSrcCoords[ii + 1];
+        destCoords.push(markers[i].offsetLeft, markers[i].offsetTop);
+    }
+
+    // Cache to avoid time consuming of `buildTransformer`.
+    return useOld
+        ? transformer
+        : (
+            saved.srcCoords = srcCoords,
+            saved.transformer = buildTransformer(srcCoords, destCoords)
+        );
 }
 
 /**
- * 如果存在第三方嵌入的一些dom触发的事件,或touch事件,需要转换一下事件坐标.
- * `calculate` is optional, default false.
+ * Normalize the coordinates of the input event.
+ *
+ * Get the `e.zrX` and `e.zrY`, which are relative to the top-left of
+ * the input `el`.
+ * Get `e.zrDelta` if using mouse wheel.
+ * Get `e.which`, see the comment inside this function.
+ *
+ * Do not calculate repeatly if `zrX` and `zrY` already exist.
+ *
+ * Notice: see comments in `clientToLocal`. check the relationship
+ * between the result coords and the parameters `el` and `calculate`.
+ *
+ * @param {HTMLElement} el DOM element.
+ * @param {Event} [e] Mouse event or touch event. For lagency IE,
+ *        do not need to input it and `window.event` is used.
+ * @param {boolean} [calculate=false] Whether to force calculate
+ *        the coordinates but not use ones provided by browser.
  */
 function normalizeEvent(el, e, calculate) {
 
@@ -1707,7 +1923,7 @@ function normalizeEvent(el, e, calculate) {
 
     // Add which for click: 1 === left; 2 === middle; 3 === right; otherwise: 0;
     // See jQuery: https://github.com/jquery/jquery/blob/master/src/event.js
-    // If e.which has been defined, if may be readonly,
+    // If e.which has been defined, it may be readonly,
     // see: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/which
     var button = e.button;
     if (e.which == null && button !== undefined && MOUSE_EVENT_REG.test(e.type)) {
@@ -1767,12 +1983,10 @@ function removeEventListener(el, name, handler) {
 
 /**
  * preventDefault and stopPropagation.
- * Notice: do not do that in zrender. Upper application
- * do that if necessary.
+ * Notice: do not use this method in zrender. It can only be
+ * used by upper applications if necessary.
  *
- * @memberOf module:zrender/core/event
- * @method
- * @param {Event} e : event对象
+ * @param {Event} e A mouse or touch event.
  */
 var stop = isDomLevel2
     ? function (e) {
@@ -6705,7 +6919,12 @@ Style.prototype = {
     strokeOpacity: null,
 
     /**
-     * @type {Array.<number>}
+     * `true` is not supported.
+     * `false`/`null`/`undefined` are the same.
+     * `false` is used to remove lineDash in some 
+     * case that `null`/`undefined` can not be set. 
+     * (e.g., emphasis.lineStyle in echarts)
+     * @type {Array.<number>|boolean}
      */
     lineDash: null,
 
@@ -7585,13 +7804,16 @@ function adjustTextY(y, height, textVerticalAlign) {
 }
 
 /**
+ * Follow same interface to `Displayable.prototype.calculateTextPosition`.
  * @public
- * @param {stirng} textPosition
- * @param {Object} rect {x, y, width, height}
- * @param {number} distance
- * @return {Object} {x, y, textAlign, textVerticalAlign}
+ * @param {Obejct} [out] Prepared out object. If not input, auto created in the method.
+ * @param {module:zrender/graphic/Style} style where `textPosition` and `textDistance` are visited.
+ * @param {Object} rect {x, y, width, height} Rect of the host elment, according to which the text positioned.
+ * @return {Object} The input `out`. Set: {x, y, textAlign, textVerticalAlign}
  */
-function adjustTextPositionOnRect(textPosition, rect, distance) {
+function calculateTextPosition(out, style, rect) {
+    var textPosition = style.textPosition;
+    var distance = style.textDistance;
 
     var x = rect.x;
     var y = rect.y;
@@ -7676,15 +7898,27 @@ function adjustTextPositionOnRect(textPosition, rect, distance) {
             break;
     }
 
-    return {
-        x: x,
-        y: y,
-        textAlign: textAlign,
-        textVerticalAlign: textVerticalAlign
-    };
+    out = out || {};
+    out.x = x;
+    out.y = y;
+    out.textAlign = textAlign;
+    out.textVerticalAlign = textVerticalAlign;
+
+    return out;
 }
 
 /**
+ * To be removed. But still do not remove in case that some one has imported it.
+ * @deprecated
+ * @public
+ * @param {stirng} textPosition
+ * @param {Object} rect {x, y, width, height}
+ * @param {number} distance
+ * @return {Object} {x, y, textAlign, textVerticalAlign}
+ */
+
+
+/**
  * Show ellipsis if overflow.
  *
  * @public
@@ -8227,6 +8461,8 @@ var SHADOW_STYLE_COMMON_PROPS = [
     ['textShadowOffsetY', 'shadowOffsetY', 0],
     ['textShadowColor', 'shadowColor', 'transparent']
 ];
+var _tmpTextPositionResult = {};
+var _tmpBoxPositionResult = {};
 
 /**
  * @param {module:zrender/graphic/Style} style
@@ -8345,7 +8581,7 @@ function renderPlainText(hostEl, ctx, text, style, rect, prevEl) {
     var textLines = contentBlock.lines;
     var lineHeight = contentBlock.lineHeight;
 
-    var boxPos = getBoxPosition(outerHeight, style, rect);
+    var boxPos = getBoxPosition(_tmpBoxPositionResult, hostEl, style, rect);
     var baseX = boxPos.baseX;
     var baseY = boxPos.baseY;
     var textAlign = boxPos.textAlign || 'left';
@@ -8456,7 +8692,7 @@ function drawRichText(hostEl, ctx, contentBlock, style, rect) {
     var outerHeight = contentBlock.outerHeight;
     var textPadding = style.textPadding;
 
-    var boxPos = getBoxPosition(outerHeight, style, rect);
+    var boxPos = getBoxPosition(_tmpBoxPositionResult, hostEl, style, rect);
     var baseX = boxPos.baseX;
     var baseY = boxPos.baseY;
     var textAlign = boxPos.textAlign;
@@ -8689,7 +8925,7 @@ function onBgImageLoaded(image, textBackgroundColor) {
     textBackgroundColor.image = image;
 }
 
-function getBoxPosition(blockHeiht, style, rect) {
+function getBoxPosition(out, hostEl, style, rect) {
     var baseX = style.x || 0;
     var baseY = style.y || 0;
     var textAlign = style.textAlign;
@@ -8704,9 +8940,9 @@ function getBoxPosition(blockHeiht, style, rect) {
             baseY = rect.y + parsePercent(textPosition[1], rect.height);
         }
         else {
-            var res = adjustTextPositionOnRect(
-                textPosition, rect, style.textDistance
-            );
+            var res = (hostEl && hostEl.calculateTextPosition)
+                ? hostEl.calculateTextPosition(_tmpTextPositionResult, style, rect)
+                : calculateTextPosition(_tmpTextPositionResult, style, rect);
             baseX = res.x;
             baseY = res.y;
             // Default align and baseline when has textPosition
@@ -8723,14 +8959,16 @@ function getBoxPosition(blockHeiht, style, rect) {
         }
     }
 
-    return {
-        baseX: baseX,
-        baseY: baseY,
-        textAlign: textAlign,
-        textVerticalAlign: textVerticalAlign
-    };
+    out = out || {};
+    out.baseX = baseX;
+    out.baseY = baseY;
+    out.textAlign = textAlign;
+    out.textVerticalAlign = textVerticalAlign;
+
+    return out;
 }
 
+
 function setCtx(ctx, prop, value) {
     ctx[prop] = fixShadow(ctx, prop, value);
     return ctx[prop];
@@ -8887,7 +9125,9 @@ function Displayable(opts) {
 
     this._rect = null;
     // Shapes for cascade clipping.
-    this.__clipPaths = [];
+    // Can only be `null`/`undefined` or an non-empty array, MUST NOT be an empty array.
+    // because it is easy to only using null to check whether clipPaths changed.
+    this.__clipPaths = null;
 
     // FIXME Stateful must be mixined after style is setted
     // Stateful.call(this, opts);
@@ -9112,7 +9352,28 @@ Displayable.prototype = {
         this.style = new Style(obj, this);
         this.dirty(false);
         return this;
-    }
+    },
+
+    /**
+     * The string value of `textPosition` needs to be calculated to a real postion.
+     * For example, `'inside'` is calculated to `[rect.width/2, rect.height/2]`
+     * by default. See `contain/text.js#calculateTextPosition` for more details.
+     * But some coutom shapes like "pin", "flag" have center that is not exactly
+     * `[width/2, height/2]`. So we provide this hook to customize the calculation
+     * for those shapes. It will be called if the `style.textPosition` is a string.
+     * @param {Obejct} [out] Prepared out object. If not provided, this method should
+     *        be responsible for creating one.
+     * @param {module:zrender/graphic/Style} style
+     * @param {Object} rect {x, y, width, height}
+     * @return {Obejct} out The same as the input out.
+     *         {
+     *             x: number. mandatory.
+     *             y: number. mandatory.
+     *             textAlign: string. optional. use style.textAlign by default.
+     *             textVerticalAlign: string. optional. use style.textVerticalAlign by default.
+     *         }
+     */
+    calculateTextPosition: null
 };
 
 inherits(Displayable, Element);
@@ -9267,10 +9528,10 @@ function isDisplayableCulled(el, width, height) {
 }
 
 function isClipPathChanged(clipPaths, prevClipPaths) {
-    if (clipPaths === prevClipPaths) { // Can both be null or undefined
+    // displayable.__clipPaths can only be `null`/`undefined` or an non-empty array.
+    if (clipPaths === prevClipPaths) { 
         return false;
     }
-
     if (!clipPaths || !prevClipPaths || (clipPaths.length !== prevClipPaths.length)) {
         return true;
     }
@@ -9279,6 +9540,7 @@ function isClipPathChanged(clipPaths, prevClipPaths) {
             return true;
         }
     }
+    return false;
 }
 
 function doClip(clipPaths, ctx) {
@@ -9724,16 +9986,14 @@ Painter.prototype = {
         ) {
 
             var clipPaths = el.__clipPaths;
+            var prevElClipPaths = scope.prevElClipPaths;
 
             // Optimize when clipping on group with several elements
-            if (!scope.prevElClipPaths
-                || isClipPathChanged(clipPaths, scope.prevElClipPaths)
-            ) {
+            if (!prevElClipPaths || isClipPathChanged(clipPaths, prevElClipPaths)) {
                 // If has previous clipping state, restore from it
-                if (scope.prevElClipPaths) {
-                    currentLayer.ctx.restore();
+                if (prevElClipPaths) {
+                    ctx.restore();
                     scope.prevElClipPaths = null;
-
                     // Reset prevEl since context has been restored
                     scope.prevEl = null;
                 }
@@ -10880,7 +11140,7 @@ var instances$1 = {};    // ZRender实例map索引
 /**
  * @type {string}
  */
-var version$1 = '4.0.7';
+var version$1 = '4.1.0';
 
 /**
  * Initializing a zrender instance
@@ -11079,14 +11339,14 @@ ZRender.prototype = {
      */
     refreshImmediately: function () {
         // var start = new Date();
+
         // Clear needsRefresh ahead to avoid something wrong happens in refresh
         // Or it will cause zrender refreshes again and again.
-        this._needsRefresh = false;
+        this._needsRefresh = this._needsRefreshHover = false;
         this.painter.refresh();
-        /**
-         * Avoid trigger zr.refresh in Element#beforeUpdate hook
-         */
-        this._needsRefresh = false;
+        // Avoid trigger zr.refresh in Element#beforeUpdate hook
+        this._needsRefresh = this._needsRefreshHover = false;
+
         // var end = new Date();
         // var log = document.getElementById('log');
         // if (log) {
@@ -12206,8 +12466,9 @@ var getLineStyle = makeStyleMapper(
 var lineStyleMixin = {
     getLineStyle: function (excludes) {
         var style = getLineStyle(this, excludes);
-        var lineDash = this.getLineDash(style.lineWidth);
-        lineDash && (style.lineDash = lineDash);
+        // Always set lineDash whether dashed, otherwise we can not 
+        // erase the previous style when assigning to el.style.
+        style.lineDash = this.getLineDash(style.lineWidth);
         return style;
     },
 
@@ -12218,8 +12479,16 @@ var lineStyleMixin = {
         var lineType = this.get('type');
         var dotSize = Math.max(lineWidth, 2);
         var dashSize = lineWidth * 4;
-        return (lineType === 'solid' || lineType == null) ? null
-            : (lineType === 'dashed' ? [dashSize, dashSize] : [dotSize, dotSize]);
+        return (lineType === 'solid' || lineType == null) 
+            // Use `false` but not `null` for the solid line here, because `null` might be 
+            // ignored when assigning to `el.style`. e.g., when setting `lineStyle.type` as 
+            // `'dashed'` and `emphasis.lineStyle.type` as `'solid'` in graph series, the 
+            // `lineDash` gotten form the latter one is not able to erase that from the former 
+            // one if using `null` here according to the emhpsis strategy in `util/graphic.js`.
+            ? false
+            : lineType === 'dashed' 
+            ? [dashSize, dashSize] 
+            : [dotSize, dotSize];
     }
 };
 
@@ -13083,9 +13352,11 @@ PathProxy.prototype = {
     /**
      * @readOnly
      */
-    setScale: function (sx, sy) {
-        this._ux = mathAbs(1 / devicePixelRatio / sx) || 0;
-        this._uy = mathAbs(1 / devicePixelRatio / sy) || 0;
+    setScale: function (sx, sy, segmentIgnoreThreshold) {
+        // Compat. Previously there is no segmentIgnoreThreshold.
+        segmentIgnoreThreshold = segmentIgnoreThreshold || 0;
+        this._ux = mathAbs(segmentIgnoreThreshold / devicePixelRatio / sx) || 0;
+        this._uy = mathAbs(segmentIgnoreThreshold / devicePixelRatio / sy) || 0;
     },
 
     getContext: function () {
@@ -14386,6 +14657,11 @@ Path.prototype = {
 
     strokeContainThreshold: 5,
 
+    // This item default to be false. But in map series in echarts,
+    // in order to improve performance, it should be set to true,
+    // so the shorty segment won't draw.
+    segmentIgnoreThreshold: 0,
+
     /**
      * See `module:zrender/src/graphic/helper/subPixelOptimize`.
      * @type {boolean}
@@ -14441,7 +14717,7 @@ Path.prototype = {
 
         // Update path sx, sy
         var scale = this.getGlobalScale();
-        path.setScale(scale[0], scale[1]);
+        path.setScale(scale[0], scale[1], this.segmentIgnoreThreshold);
 
         // Proxy context
         // Rebuild path in following 2 cases
@@ -15789,7 +16065,7 @@ var Polyline = Path.extend({
  * when rendering a thin vertical/horizontal line.
  */
 
-var round$1 = Math.round;
+var round = Math.round;
 
 /**
  * Sub pixel optimize line for canvas
@@ -15818,14 +16094,14 @@ function subPixelOptimizeLine$1(outputShape, inputShape, style) {
     var y1 = inputShape.y1;
     var y2 = inputShape.y2;
 
-    if (round$1(x1 * 2) === round$1(x2 * 2)) {
+    if (round(x1 * 2) === round(x2 * 2)) {
         outputShape.x1 = outputShape.x2 = subPixelOptimize$1(x1, lineWidth, true);
     }
     else {
         outputShape.x1 = x1;
         outputShape.x2 = x2;
     }
-    if (round$1(y1 * 2) === round$1(y2 * 2)) {
+    if (round(y1 * 2) === round(y2 * 2)) {
         outputShape.y1 = outputShape.y2 = subPixelOptimize$1(y1, lineWidth, true);
     }
     else {
@@ -15884,8 +16160,8 @@ function subPixelOptimizeRect$1(outputShape, inputShape, style) {
 function subPixelOptimize$1(position, lineWidth, positiveOrNegative) {
     // Assure that (position + lineWidth / 2) is near integer edge,
     // otherwise line will be fuzzy in canvas.
-    var doubledPosition = round$1(position * 2);
-    return (doubledPosition + round$1(lineWidth)) % 2 === 0
+    var doubledPosition = round(position * 2);
+    return (doubledPosition + round(lineWidth)) % 2 === 0
         ? doubledPosition / 2
         : (doubledPosition + (positiveOrNegative ? 1 : -1)) / 2;
 }
@@ -16230,7 +16506,7 @@ var CompoundPath = Path.extend({
             if (!paths[i].path) {
                 paths[i].createPathProxy();
             }
-            paths[i].path.setScale(scale[0], scale[1]);
+            paths[i].path.setScale(scale[0], scale[1], paths[i].segmentIgnoreThreshold);
         }
     },
 
@@ -16502,7 +16778,6 @@ inherits(IncrementalDisplayble, Displayable);
 * under the License.
 */
 
-var round = Math.round;
 var mathMax$1 = Math.max;
 var mathMin$1 = Math.min;
 
@@ -16510,6 +16785,21 @@ var EMPTY_OBJ = {};
 
 var Z2_EMPHASIS_LIFT = 1;
 
+// key: label model property nane, value: style property name.
+var CACHED_LABEL_STYLE_PROPERTIES = {
+    color: 'textFill',
+    textBorderColor: 'textStroke',
+    textBorderWidth: 'textStrokeWidth'
+};
+
+var EMPHASIS = 'emphasis';
+var NORMAL = 'normal';
+
+// Reserve 0 as default.
+var _highlightNextDigit = 1;
+var _highlightKeyMap = {};
+
+
 /**
  * Extend shape with parameters
  */
@@ -16634,15 +16924,7 @@ function resizePath(path, rect) {
  * @return {Object} Modified param
  */
 function subPixelOptimizeLine(param) {
-    var shape = param.shape;
-    var lineWidth = param.style.lineWidth;
-
-    if (round(shape.x1 * 2) === round(shape.x2 * 2)) {
-        shape.x1 = shape.x2 = subPixelOptimize(shape.x1, lineWidth, true);
-    }
-    if (round(shape.y1 * 2) === round(shape.y2 * 2)) {
-        shape.y1 = shape.y2 = subPixelOptimize(shape.y1, lineWidth, true);
-    }
+    subPixelOptimizeLine$1(param.shape, param.shape, param.style);
     return param;
 }
 
@@ -16660,22 +16942,7 @@ function subPixelOptimizeLine(param) {
  * @return {Object} Modified param
  */
 function subPixelOptimizeRect(param) {
-    var shape = param.shape;
-    var lineWidth = param.style.lineWidth;
-    var originX = shape.x;
-    var originY = shape.y;
-    var originWidth = shape.width;
-    var originHeight = shape.height;
-    shape.x = subPixelOptimize(shape.x, lineWidth, true);
-    shape.y = subPixelOptimize(shape.y, lineWidth, true);
-    shape.width = Math.max(
-        subPixelOptimize(originX + originWidth, lineWidth, false) - shape.x,
-        originWidth === 0 ? 0 : 1
-    );
-    shape.height = Math.max(
-        subPixelOptimize(originY + originHeight, lineWidth, false) - shape.y,
-        originHeight === 0 ? 0 : 1
-    );
+    subPixelOptimizeRect$1(param.shape, param.shape, param.style);
     return param;
 }
 
@@ -16687,14 +16954,8 @@ function subPixelOptimizeRect(param) {
  * @param {boolean=} positiveOrNegative Default false (negative).
  * @return {number} Optimized position.
  */
-function subPixelOptimize(position, lineWidth, positiveOrNegative) {
-    // Assure that (position + lineWidth / 2) is near integer edge,
-    // otherwise line will be fuzzy in canvas.
-    var doubledPosition = round(position * 2);
-    return (doubledPosition + round(lineWidth)) % 2 === 0
-        ? doubledPosition / 2
-        : (doubledPosition + (positiveOrNegative ? 1 : -1)) / 2;
-}
+var subPixelOptimize = subPixelOptimize$1;
+
 
 function hasFillOrStroke(fillOrStroke) {
     return fillOrStroke != null && fillOrStroke !== 'none';
@@ -16736,7 +16997,7 @@ function cacheElementStl(el) {
     var elStyle = el.style;
 
     for (var name in hoverStyle) {
-        // See comment in `doSingleEnterHover`.
+        // See comment in `singleEnterEmphasis`.
         if (hoverStyle[name] != null) {
             normalStyle[name] = elStyle[name];
         }
@@ -16747,7 +17008,7 @@ function cacheElementStl(el) {
     normalStyle.stroke = elStyle.stroke;
 }
 
-function doSingleEnterHover(el) {
+function singleEnterEmphasis(el) {
     var hoverStl = el.__hoverStl;
 
     if (!hoverStl || el.__highlighted) {
@@ -16758,7 +17019,7 @@ function doSingleEnterHover(el) {
     el.__highlighted = useHoverLayer ? 'layer' : 'plain';
 
     var zr = el.__zr;
-    if (!zr && useHoverLayer) {
+    if (el.isGroup || (!zr && useHoverLayer)) {
         return;
     }
 
@@ -16792,9 +17053,13 @@ function doSingleEnterHover(el) {
     // where properties of `emphasis` may not appear in `normal`. We previously use
     // module:echarts/util/model#defaultEmphasis to merge `normal` to `emphasis`.
     // But consider rich text and setOption in merge mode, it is impossible to cover
-    // all properties in merge. So we use merge mode when setting style here, where
-    // only properties that is not `null/undefined` can be set. The disadventage:
-    // null/undefined can not be used to remove style any more in `emphasis`.
+    // all properties in merge. So we use merge mode when setting style here.
+    // But we choose the merge strategy that only properties that is not `null/undefined`.
+    // Because when making a textStyle (espacially rich text), it is not easy to distinguish
+    // `hasOwnProperty` and `null/undefined` in code, so we trade them as the same for simplicity.
+    // But this strategy brings a trouble that `null/undefined` can not be used to remove
+    // style any more in `emphasis`. Users can both set properties directly on normal and
+    // emphasis to avoid this issue, or we might support `'none'` for this case if required.
     targetStyle.extendFrom(hoverStl);
 
     setDefaultHoverFillStroke(targetStyle, hoverStl, 'fill');
@@ -16814,7 +17079,7 @@ function setDefaultHoverFillStroke(targetStyle, hoverStyle, prop) {
     }
 }
 
-function doSingleLeaveHover(el) {
+function singleEnterNormal(el) {
     var highlighted = el.__highlighted;
 
     if (!highlighted) {
@@ -16823,17 +17088,19 @@ function doSingleLeaveHover(el) {
 
     el.__highlighted = false;
 
+    if (el.isGroup) {
+        return;
+    }
+
     if (highlighted === 'layer') {
         el.__zr && el.__zr.removeHover(el);
     }
-    else if (highlighted) {
+    else {
         var style = el.style;
 
         var normalStl = el.__cachedNormalStl;
         if (normalStl) {
             rollbackDefaultTextStyle(style);
-            // Consider null/undefined value, should use
-            // `setStyle` but not `extendFrom(stl, true)`.
             el.setStyle(normalStl);
             applyDefaultTextStyle(style);
         }
@@ -16847,12 +17114,21 @@ function doSingleLeaveHover(el) {
     }
 }
 
-function traverseCall(el, method) {
-    el.isGroup
-        ? el.traverse(function (child) {
-            !child.isGroup && method(child);
-        })
-        : method(el);
+function traverseUpdate(el, updater, commonParam) {
+    // If root is group, also enter updater for `highDownOnUpdate`.
+    var fromState = NORMAL;
+    var toState = NORMAL;
+    var trigger;
+    // See the rule of `highDownOnUpdate` on `graphic.setAsHighDownDispatcher`.
+    el.__highlighted && (fromState = EMPHASIS, trigger = true);
+    updater(el, commonParam);
+    el.__highlighted && (toState = EMPHASIS, trigger = true);
+
+    el.isGroup && el.traverse(function (child) {
+        !child.isGroup && updater(child, commonParam);
+    });
+
+    trigger && el.__highDownOnUpdate && el.__highDownOnUpdate(fromState, toState);
 }
 
 /**
@@ -16862,18 +17138,19 @@ function traverseCall(el, method) {
  * to the `el`. See the reason on `setHoverStyle`.
  *
  * @param {module:zrender/Element} el Should not be `zrender/container/Group`.
+ * @param {Object} [el.hoverStyle] Can be set on el or its descendants,
+ *        e.g., `el.hoverStyle = ...; graphic.setHoverStyle(el); `.
+ *        Often used when item group has a label element and it's hoverStyle is different.
  * @param {Object|boolean} [hoverStl] The specified hover style.
  *        If set as `false`, disable the hover style.
  *        Similarly, The `el.hoverStyle` can alse be set
  *        as `false` to disable the hover style.
  *        Otherwise, use the default hover style if not provided.
- * @param {Object} [opt]
- * @param {boolean} [opt.hoverSilentOnTouch=false] See `graphic.setAsHoverStyleTrigger`
  */
 function setElementHoverStyle(el, hoverStl) {
     // For performance consideration, it might be better to make the "hover style" only the
     // difference properties from the "normal style", but not a entire copy of all styles.
-    hoverStl = el.__hoverStl = hoverStl !== false && (hoverStl || {});
+    hoverStl = el.__hoverStl = hoverStl !== false && (el.hoverStyle || hoverStl || {});
     el.__hoverStlDirty = true;
 
     // FIXME
@@ -16892,53 +17169,38 @@ function setElementHoverStyle(el, hoverStl) {
         // of this method. In most cases, `z2` is not set and hover style should be able
         // to rollback. Of course, that would bring bug, but only in a rare case, see
         // `doSingleLeaveHover` for details.
-        doSingleLeaveHover(el);
+        singleEnterNormal(el);
 
-        doSingleEnterHover(el);
+        singleEnterEmphasis(el);
     }
 }
 
-/**
- * Emphasis (called by API) has higher priority than `mouseover`.
- * When element has been called to be entered emphasis, mouse over
- * should not trigger the highlight effect (for example, animation
- * scale) again, and `mouseout` should not downplay the highlight
- * effect. So the listener of `mouseover` and `mouseout` should
- * check `isInEmphasis`.
- *
- * @param {module:zrender/Element} el
- * @return {boolean}
- */
-function isInEmphasis(el) {
-    return el && el.__isEmphasisEntered;
-}
-
 function onElementMouseOver(e) {
-    if (this.__hoverSilentOnTouch && e.zrByTouch) {
-        return;
-    }
-
-    // Only if element is not in emphasis status
-    !this.__isEmphasisEntered && traverseCall(this, doSingleEnterHover);
+    !shouldSilent(this, e)
+        // "emphasis" event highlight has higher priority than mouse highlight.
+        && !this.__highByOuter
+        && traverseUpdate(this, singleEnterEmphasis);
 }
 
 function onElementMouseOut(e) {
-    if (this.__hoverSilentOnTouch && e.zrByTouch) {
-        return;
-    }
+    !shouldSilent(this, e)
+        // "emphasis" event highlight has higher priority than mouse highlight.
+        && !this.__highByOuter
+        && traverseUpdate(this, singleEnterNormal);
+}
 
-    // Only if element is not in emphasis status
-    !this.__isEmphasisEntered && traverseCall(this, doSingleLeaveHover);
+function onElementEmphasisEvent(highlightDigit) {
+    this.__highByOuter |= 1 << (highlightDigit || 0);
+    traverseUpdate(this, singleEnterEmphasis);
 }
 
-function enterEmphasis() {
-    this.__isEmphasisEntered = true;
-    traverseCall(this, doSingleEnterHover);
+function onElementNormalEvent(highlightDigit) {
+    !(this.__highByOuter &= ~(1 << (highlightDigit || 0)))
+        && traverseUpdate(this, singleEnterNormal);
 }
 
-function leaveEmphasis() {
-    this.__isEmphasisEntered = false;
-    traverseCall(this, doSingleLeaveHover);
+function shouldSilent(el, e) {
+    return el.__highDownSilentOnTouch && e.zrByTouch;
 }
 
 /**
@@ -16970,26 +17232,42 @@ function leaveEmphasis() {
  * root group, we can simply mount the style on `el.hoverStyle` for them, but should
  * not call this method for them.
  *
+ * (3) These input parameters can be set directly on `el`:
+ *
  * @param {module:zrender/Element} el
+ * @param {Object} [el.hoverStyle] See `graphic.setElementHoverStyle`.
+ * @param {boolean} [el.highDownSilentOnTouch=false] See `graphic.setAsHighDownDispatcher`.
+ * @param {Function} [el.highDownOnUpdate] See `graphic.setAsHighDownDispatcher`.
  * @param {Object|boolean} [hoverStyle] See `graphic.setElementHoverStyle`.
- * @param {Object} [opt]
- * @param {boolean} [opt.hoverSilentOnTouch=false] See `graphic.setAsHoverStyleTrigger`.
- */
-function setHoverStyle(el, hoverStyle, opt) {
-    el.isGroup
-        ? el.traverse(function (child) {
-            // If element has sepcified hoverStyle, then use it instead of given hoverStyle
-            // Often used when item group has a label element and it's hoverStyle is different
-            !child.isGroup && setElementHoverStyle(child, child.hoverStyle || hoverStyle);
-        })
-        : setElementHoverStyle(el, el.hoverStyle || hoverStyle);
-
-    setAsHoverStyleTrigger(el, opt);
+ */
+function setHoverStyle(el, hoverStyle) {
+    setAsHighDownDispatcher(el, true);
+    traverseUpdate(el, setElementHoverStyle, hoverStyle);
 }
 
 /**
- * @param {Object|boolean} [opt] If `false`, means disable trigger.
- * @param {boolean} [opt.hoverSilentOnTouch=false]
+ * @param {module:zrender/Element} el
+ * @param {Function} [el.highDownOnUpdate] Called when state updated.
+ *        Since `setHoverStyle` has the constraint that it must be called after
+ *        all of the normal style updated, `highDownOnUpdate` is not needed to
+ *        trigger if both `fromState` and `toState` is 'normal', and needed to
+ *        trigger if both `fromState` and `toState` is 'emphasis', which enables
+ *        to sync outside style settings to "emphasis" state.
+ *        @this {string} This dispatcher `el`.
+ *        @param {string} fromState Can be "normal" or "emphasis".
+ *               `fromState` might equal to `toState`,
+ *               for example, when this method is called when `el` is
+ *               on "emphasis" state.
+ *        @param {string} toState Can be "normal" or "emphasis".
+ *
+ *        FIXME
+ *        CAUTION: Do not expose `highDownOnUpdate` outside echarts.
+ *        Because it is not a complete solution. The update
+ *        listener should not have been mount in element,
+ *        and the normal/emphasis state should not have
+ *        mantained on elements.
+ *
+ * @param {boolean} [el.highDownSilentOnTouch=false]
  *        In touch device, mouseover event will be trigger on touchstart event
  *        (see module:zrender/dom/HandlerProxy). By this mechanism, we can
  *        conveniently use hoverStyle when tap on touch screen without additional
@@ -16997,28 +17275,58 @@ function setHoverStyle(el, hoverStyle, opt) {
  *        But if the chart/component has select feature, which usually also use
  *        hoverStyle, there might be conflict between 'select-highlight' and
  *        'hover-highlight' especially when roam is enabled (see geo for example).
- *        In this case, hoverSilentOnTouch should be used to disable hover-highlight
- *        on touch device.
+ *        In this case, `highDownSilentOnTouch` should be used to disable
+ *        hover-highlight on touch device.
+ * @param {boolean} [asDispatcher=true] If `false`, do not set as "highDownDispatcher".
  */
-function setAsHoverStyleTrigger(el, opt) {
-    var disable = opt === false;
-    el.__hoverSilentOnTouch = opt != null && opt.hoverSilentOnTouch;
+function setAsHighDownDispatcher(el, asDispatcher) {
+    var disable = asDispatcher === false;
+    // Make `highDownSilentOnTouch` and `highDownOnUpdate` only work after
+    // `setAsHighDownDispatcher` called. Avoid it is modified by user unexpectedly.
+    el.__highDownSilentOnTouch = el.highDownSilentOnTouch;
+    el.__highDownOnUpdate = el.highDownOnUpdate;
 
     // Simple optimize, since this method might be
     // called for each elements of a group in some cases.
-    if (!disable || el.__hoverStyleTrigger) {
+    if (!disable || el.__highDownDispatcher) {
         var method = disable ? 'off' : 'on';
 
         // Duplicated function will be auto-ignored, see Eventful.js.
         el[method]('mouseover', onElementMouseOver)[method]('mouseout', onElementMouseOut);
-        // Emphasis, normal can be triggered manually
-        el[method]('emphasis', enterEmphasis)[method]('normal', leaveEmphasis);
+        // Emphasis, normal can be triggered manually by API or other components like hover link.
+        el[method]('emphasis', onElementEmphasisEvent)[method]('normal', onElementNormalEvent);
+        // Also keep previous record.
+        el.__highByOuter = el.__highByOuter || 0;
 
-        el.__hoverStyleTrigger = !disable;
+        el.__highDownDispatcher = !disable;
     }
 }
 
 /**
+ * @param {module:zrender/src/Element} el
+ * @return {boolean}
+ */
+function isHighDownDispatcher(el) {
+    return !!(el && el.__highDownDispatcher);
+}
+
+/**
+ * Support hightlight/downplay record on each elements.
+ * For the case: hover highlight/downplay (legend, visualMap, ...) and
+ * user triggerred hightlight/downplay should not conflict.
+ * Only all of the highlightDigit cleared, return to normal.
+ * @param {string} highlightKey
+ * @return {number} highlightDigit
+ */
+function getHighlightDigit(highlightKey) {
+    var highlightDigit = _highlightKeyMap[highlightKey];
+    if (highlightDigit == null && _highlightNextDigit <= 32) {
+        highlightDigit = _highlightKeyMap[highlightKey] = _highlightNextDigit++;
+    }
+    return highlightDigit;
+}
+
+/**
  * See more info in `setTextStyleCommon`.
  * @param {Object|module:zrender/graphic/Style} normalStyle
  * @param {Object} emphasisStyle
@@ -17091,6 +17399,29 @@ function setLabelStyle(
 }
 
 /**
+ * Modify label style manually.
+ * Only works after `setLabelStyle` and `setElementHoverStyle` called.
+ *
+ * @param {module:zrender/src/Element} el
+ * @param {Object} [normalStyleProps] optional
+ * @param {Object} [emphasisStyleProps] optional
+ */
+function modifyLabelStyle(el, normalStyleProps, emphasisStyleProps) {
+    var elStyle = el.style;
+    if (normalStyleProps) {
+        rollbackDefaultTextStyle(elStyle);
+        el.setStyle(normalStyleProps);
+        applyDefaultTextStyle(elStyle);
+    }
+    elStyle = el.__hoverStl;
+    if (emphasisStyleProps && elStyle) {
+        rollbackDefaultTextStyle(elStyle);
+        extend(elStyle, emphasisStyleProps);
+        applyDefaultTextStyle(elStyle);
+    }
+}
+
+/**
  * Set basic textStyle properties.
  * See more info in `setTextStyleCommon`.
  * @param {Object|module:zrender/graphic/Style} textStyle
@@ -17211,6 +17542,10 @@ function setTextStyleCommon(textStyle, textStyleModel, opt, isEmphasis) {
                 // Cascade is supported in rich.
                 var richTextStyle = textStyleModel.getModel(['rich', name]);
                 // In rich, never `disableBox`.
+                // FIXME: consider `label: {formatter: '{a|xx}', color: 'blue', rich: {a: {}}}`,
+                // the default color `'blue'` will not be adopted if no color declared in `rich`.
+                // That might confuses users. So probably we should put `textStyleModel` as the
+                // root ancestor of the `richTextStyle`. But that would be a break change.
                 setTokenTextStyle(richResult[name] = {}, richTextStyle, globalTextStyle, opt, isEmphasis);
             }
         }
@@ -17271,10 +17606,6 @@ function setTokenTextStyle(textStyle, textStyleModel, globalTextStyle, opt, isEm
         globalTextStyle.textBorderWidth
     );
 
-    // Save original textPosition, because style.textPosition will be repalced by
-    // real location (like [10, 30]) in zrender.
-    textStyle.insideRawTextPosition = textStyle.textPosition;
-
     if (!isEmphasis) {
         if (isBlock) {
             textStyle.insideRollbackOpt = opt;
@@ -17349,50 +17680,49 @@ function getAutoColor(color, opt) {
  * does, `rollbackDefaultTextStyle` is not needed to be called).
  */
 function applyDefaultTextStyle(textStyle) {
+    var textPosition = textStyle.textPosition;
     var opt = textStyle.insideRollbackOpt;
-
-    // Only `insideRollbackOpt` created (in `setTextStyleCommon`),
-    // applyDefaultTextStyle works.
-    if (!opt || textStyle.textFill != null) {
-        return;
-    }
-
-    var useInsideStyle = opt.useInsideStyle;
-    var textPosition = textStyle.insideRawTextPosition;
     var insideRollback;
-    var autoColor = opt.autoColor;
-
-    if (useInsideStyle !== false
-        && (useInsideStyle === true
-            || (opt.isRectText
-                && textPosition
-                // textPosition can be [10, 30]
-                && typeof textPosition === 'string'
-                && textPosition.indexOf('inside') >= 0
-            )
-        )
-    ) {
-        insideRollback = {
-            textFill: null,
-            textStroke: textStyle.textStroke,
-            textStrokeWidth: textStyle.textStrokeWidth
-        };
-        textStyle.textFill = '#fff';
-        // Consider text with #fff overflow its container.
-        if (textStyle.textStroke == null) {
-            textStyle.textStroke = autoColor;
-            textStyle.textStrokeWidth == null && (textStyle.textStrokeWidth = 2);
+
+    if (opt && textStyle.textFill == null) {
+        var autoColor = opt.autoColor;
+        var isRectText = opt.isRectText;
+        var useInsideStyle = opt.useInsideStyle;
+
+        var useInsideStyleCache = useInsideStyle !== false
+            && (useInsideStyle === true
+                || (isRectText
+                    && textPosition
+                    // textPosition can be [10, 30]
+                    && typeof textPosition === 'string'
+                    && textPosition.indexOf('inside') >= 0
+                )
+            );
+        var useAutoColorCache = !useInsideStyleCache && autoColor != null;
+
+        // All of the props declared in `CACHED_LABEL_STYLE_PROPERTIES` are to be cached.
+        if (useInsideStyleCache || useAutoColorCache) {
+            insideRollback = {
+                textFill: textStyle.textFill,
+                textStroke: textStyle.textStroke,
+                textStrokeWidth: textStyle.textStrokeWidth
+            };
+        }
+        if (useInsideStyleCache) {
+            textStyle.textFill = '#fff';
+            // Consider text with #fff overflow its container.
+            if (textStyle.textStroke == null) {
+                textStyle.textStroke = autoColor;
+                textStyle.textStrokeWidth == null && (textStyle.textStrokeWidth = 2);
+            }
+        }
+        if (useAutoColorCache) {
+            textStyle.textFill = autoColor;
         }
-    }
-    else if (autoColor != null) {
-        insideRollback = {textFill: null};
-        textStyle.textFill = autoColor;
     }
 
-    // Always set `insideRollback`, for clearing previous.
-    if (insideRollback) {
-        textStyle.insideRollback = insideRollback;
-    }
+    // Always set `insideRollback`, so that the previous one can be cleared.
+    textStyle.insideRollback = insideRollback;
 }
 
 /**
@@ -17408,6 +17738,7 @@ function applyDefaultTextStyle(textStyle) {
 function rollbackDefaultTextStyle(style) {
     var insideRollback = style.insideRollback;
     if (insideRollback) {
+        // Reset all of the props in `CACHED_LABEL_STYLE_PROPERTIES`.
         style.textFill = insideRollback.textFill;
         style.textStroke = insideRollback.textStroke;
         style.textStrokeWidth = insideRollback.textStrokeWidth;
@@ -17691,11 +18022,94 @@ function createIcon(iconStr, opt, rect) {
     }
 }
 
+/**
+ * Return `true` if the given line (line `a`) and the given polygon
+ * are intersect.
+ * Note that we do not count colinear as intersect here because no
+ * requirement for that. We could do that if required in future.
+ *
+ * @param {number} a1x
+ * @param {number} a1y
+ * @param {number} a2x
+ * @param {number} a2y
+ * @param {Array.<Array.<number>>} points Points of the polygon.
+ * @return {boolean}
+ */
+function linePolygonIntersect(a1x, a1y, a2x, a2y, points) {
+    for (var i = 0, p2 = points[points.length - 1]; i < points.length; i++) {
+        var p = points[i];
+        if (lineLineIntersect(a1x, a1y, a2x, a2y, p[0], p[1], p2[0], p2[1])) {
+            return true;
+        }
+        p2 = p;
+    }
+}
+
+/**
+ * Return `true` if the given two lines (line `a` and line `b`)
+ * are intersect.
+ * Note that we do not count colinear as intersect here because no
+ * requirement for that. We could do that if required in future.
+ *
+ * @param {number} a1x
+ * @param {number} a1y
+ * @param {number} a2x
+ * @param {number} a2y
+ * @param {number} b1x
+ * @param {number} b1y
+ * @param {number} b2x
+ * @param {number} b2y
+ * @return {boolean}
+ */
+function lineLineIntersect(a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y) {
+    // let `vec_m` to be `vec_a2 - vec_a1` and `vec_n` to be `vec_b2 - vec_b1`.
+    var mx = a2x - a1x;
+    var my = a2y - a1y;
+    var nx = b2x - b1x;
+    var ny = b2y - b1y;
+
+    // `vec_m` and `vec_n` are parallel iff
+    //     exising `k` such that `vec_m = k · vec_n`, equivalent to `vec_m X vec_n = 0`.
+    var nmCrossProduct = crossProduct2d(nx, ny, mx, my);
+    if (nearZero(nmCrossProduct)) {
+        return false;
+    }
+
+    // `vec_m` and `vec_n` are intersect iff
+    //     existing `p` and `q` in [0, 1] such that `vec_a1 + p * vec_m = vec_b1 + q * vec_n`,
+    //     such that `q = ((vec_a1 - vec_b1) X vec_m) / (vec_n X vec_m)`
+    //           and `p = ((vec_a1 - vec_b1) X vec_n) / (vec_n X vec_m)`.
+    var b1a1x = a1x - b1x;
+    var b1a1y = a1y - b1y;
+    var q = crossProduct2d(b1a1x, b1a1y, mx, my) / nmCrossProduct;
+    if (q < 0 || q > 1) {
+        return false;
+    }
+    var p = crossProduct2d(b1a1x, b1a1y, nx, ny) / nmCrossProduct;
+    if (p < 0 || p > 1) {
+        return false;
+    }
+
+    return true;
+}
+
+/**
+ * Cross product of 2-dimension vector.
+ */
+function crossProduct2d(x1, y1, x2, y2) {
+    return x1 * y2 - x2 * y1;
+}
+
+function nearZero(val) {
+    return val <= (1e-6) && val >= -(1e-6);
+}
+
 
 
 
 var graphic = (Object.freeze || Object)({
 	Z2_EMPHASIS_LIFT: Z2_EMPHASIS_LIFT,
+	CACHED_LABEL_STYLE_PROPERTIES: CACHED_LABEL_STYLE_PROPERTIES,
 	extendShape: extendShape,
 	extendPath: extendPath,
 	makePath: makePath,
@@ -17706,10 +18120,12 @@ var graphic = (Object.freeze || Object)({
 	subPixelOptimizeRect: subPixelOptimizeRect,
 	subPixelOptimize: subPixelOptimize,
 	setElementHoverStyle: setElementHoverStyle,
-	isInEmphasis: isInEmphasis,
 	setHoverStyle: setHoverStyle,
-	setAsHoverStyleTrigger: setAsHoverStyleTrigger,
+	setAsHighDownDispatcher: setAsHighDownDispatcher,
+	isHighDownDispatcher: isHighDownDispatcher,
+	getHighlightDigit: getHighlightDigit,
 	setLabelStyle: setLabelStyle,
+	modifyLabelStyle: modifyLabelStyle,
 	setTextStyle: setTextStyle,
 	setText: setText,
 	getFont: getFont,
@@ -17722,6 +18138,8 @@ var graphic = (Object.freeze || Object)({
 	clipPointsByRect: clipPointsByRect,
 	clipRectByRect: clipRectByRect,
 	createIcon: createIcon,
+	linePolygonIntersect: linePolygonIntersect,
+	lineLineIntersect: lineLineIntersect,
 	Group: Group,
 	Image: ZImage,
 	Text: Text,
@@ -18379,7 +18797,7 @@ function parsePercent$1(percent, all) {
  * @param {boolean} [returnStr]
  * @return {number|string}
  */
-function round$2(x, precision, returnStr) {
+function round$1(x, precision, returnStr) {
     if (precision == null) {
         precision = 10;
     }
@@ -18389,6 +18807,13 @@ function round$2(x, precision, returnStr) {
     return returnStr ? x : +x;
 }
 
+/**
+ * asc sort arr.
+ * The input arr will be modified.
+ *
+ * @param {Array} arr
+ * @return {Array} The input arr.
+ */
 function asc(arr) {
     arr.sort(function (a, b) {
         return a - b;
@@ -18782,7 +19207,7 @@ function isNumeric(v) {
 var number = (Object.freeze || Object)({
 	linearMap: linearMap,
 	parsePercent: parsePercent$1,
-	round: round$2,
+	round: round$1,
 	asc: asc,
 	getPrecision: getPrecision,
 	getPrecisionSafe: getPrecisionSafe,
@@ -21439,7 +21864,7 @@ var GlobalModel = Model.extend({
      * After filtering, series may be different.
      * frome raw series.
      *
-     * @parma {string} subType
+     * @param {string} subType.
      * @param {Function} cb
      * @param {*} context
      */
@@ -21917,7 +22342,7 @@ OptionManager.prototype = {
         // Caution: some series modify option data, if do not clone,
         // it should ensure that the repeat modify correctly
         // (create a new object when modify itself).
-        rawOption = clone$3(rawOption, true);
+        rawOption = clone$3(rawOption);
 
         // FIXME
         // 如果 timeline options 或者 media 中设置了某个属性,而baseOption中没有设置,则进行警告。
@@ -22289,6 +22714,7 @@ function convertNormalEmphasis(opt, optType, useExtend) {
         }
     }
 }
+
 function removeEC3NormalStatus(opt) {
     convertNormalEmphasis(opt, 'itemStyle');
     convertNormalEmphasis(opt, 'lineStyle');
@@ -22593,7 +23019,7 @@ var backwardCompat = function (option, isTheme) {
         if (seriesType === 'gauge') {
             var pointerColor = get(seriesOpt, 'pointer.color');
             pointerColor != null
-                && set$1(seriesOpt, 'itemStyle.normal.color', pointerColor);
+                && set$1(seriesOpt, 'itemStyle.color', pointerColor);
         }
 
         compatLayoutProperties(seriesOpt);
@@ -23157,6 +23583,7 @@ var dataFormatMixin = {
         var renderMode = getTooltipRenderMode(renderModeOption);
         var mainType = this.mainType;
         var isSeries = mainType === 'series';
+        var userOutput = data.userOutput;
 
         return {
             componentType: mainType,
@@ -23172,6 +23599,8 @@ var dataFormatMixin = {
             dataType: dataType,
             value: rawValue,
             color: color,
+            dimensionNames: userOutput ? userOutput.dimensionNames : null,
+            encode: userOutput ? userOutput.encode : null,
             marker: getTooltipMarker({
                 color: color,
                 renderMode: renderMode
@@ -23187,7 +23616,8 @@ var dataFormatMixin = {
      * @param {number} dataIndex
      * @param {string} [status='normal'] 'normal' or 'emphasis'
      * @param {string} [dataType]
-     * @param {number} [dimIndex]
+     * @param {number} [dimIndex] Only used in some chart that
+     *        use formatter in different dimensions, like radar.
      * @param {string} [labelProp='label']
      * @return {string} If not formatter, return null/undefined
      */
@@ -23209,6 +23639,7 @@ var dataFormatMixin = {
 
         if (typeof formatter === 'function') {
             params.status = status;
+            params.dimensionIndex = dimIndex;
             return formatter(params);
         }
         else if (typeof formatter === 'string') {
@@ -24208,7 +24639,7 @@ function getCurrentTask(seriesModel) {
 * under the License.
 */
 
-var Component = function () {
+var Component$1 = function () {
     /**
      * @type {module:zrender/container/Group}
      * @readOnly
@@ -24222,9 +24653,9 @@ var Component = function () {
     this.uid = getUID('viewComponent');
 };
 
-Component.prototype = {
+Component$1.prototype = {
 
-    constructor: Component,
+    constructor: Component$1,
 
     init: function (ecModel, api) {},
 
@@ -24243,7 +24674,7 @@ Component.prototype = {
 
 };
 
-var componentProto = Component.prototype;
+var componentProto = Component$1.prototype;
 componentProto.updateView
     = componentProto.updateLayout
     = componentProto.updateVisual
@@ -24251,10 +24682,10 @@ componentProto.updateView
         // Do nothing;
     };
 // Enable Component.extend.
-enableClassExtend(Component);
+enableClassExtend(Component$1);
 
 // Enable capability of registerClass, getClass, hasClass, registerSubTypeDefaulter and so on.
-enableClassManagement(Component, {registerWhenExtend: true});
+enableClassManagement(Component$1, {registerWhenExtend: true});
 
 /*
 * Licensed to the Apache Software Foundation (ASF) under one
@@ -24445,44 +24876,53 @@ Chart.prototype = {
 };
 
 var chartProto = Chart.prototype;
-chartProto.updateView
-    = chartProto.updateLayout
-    = chartProto.updateVisual
-    = function (seriesModel, ecModel, api, payload) {
+chartProto.updateView =
+chartProto.updateLayout =
+chartProto.updateVisual =
+    function (seriesModel, ecModel, api, payload) {
         this.render(seriesModel, ecModel, api, payload);
     };
 
 /**
  * Set state of single element
- * @param  {module:zrender/Element} el
- * @param  {string} state
+ * @param {module:zrender/Element} el
+ * @param {string} state 'normal'|'emphasis'
+ * @param {number} highlightDigit
  */
-function elSetState(el, state) {
+function elSetState(el, state, highlightDigit) {
     if (el) {
-        el.trigger(state);
-        if (el.type === 'group') {
-            for (var i = 0; i < el.childCount(); i++) {
-                elSetState(el.childAt(i), state);
+        el.trigger(state, highlightDigit);
+        if (el.isGroup
+            // Simple optimize.
+            && !isHighDownDispatcher(el)
+        ) {
+            for (var i = 0, len = el.childCount(); i < len; i++) {
+                elSetState(el.childAt(i), state, highlightDigit);
             }
         }
     }
 }
+
 /**
- * @param  {module:echarts/data/List} data
- * @param  {Object} payload
- * @param  {string} state 'normal'|'emphasis'
+ * @param {module:echarts/data/List} data
+ * @param {Object} payload
+ * @param {string} state 'normal'|'emphasis'
  */
 function toggleHighlight(data, payload, state) {
     var dataIndex = queryDataIndex(data, payload);
 
+    var highlightDigit = (payload && payload.highlightKey != null)
+        ? getHighlightDigit(payload.highlightKey)
+        : null;
+
     if (dataIndex != null) {
         each$1(normalizeToArray(dataIndex), function (dataIdx) {
-            elSetState(data.getItemGraphicEl(dataIdx), state);
+            elSetState(data.getItemGraphicEl(dataIdx), state, highlightDigit);
         });
     }
     else {
         data.eachItemGraphicEl(function (el) {
-            elSetState(el, state);
+            elSetState(el, state, highlightDigit);
         });
     }
 }
@@ -25975,7 +26415,7 @@ ComponentModel.extend({
 
 });
 
-Component.extend({
+Component$1.extend({
 
     type: 'dataset'
 
@@ -26808,10 +27248,10 @@ var isFunction = isFunction$1;
 var isObject = isObject$1;
 var parseClassType = ComponentModel.parseClassType;
 
-var version = '4.2.1';
+var version = '4.3.0';
 
 var dependencies = {
-    zrender: '4.0.6'
+    zrender: '4.1.0'
 };
 
 var TEST_FRAME_REMAIN_TIME = 1;
@@ -26820,8 +27260,10 @@ var PRIORITY_PROCESSOR_FILTER = 1000;
 var PRIORITY_PROCESSOR_STATISTIC = 5000;
 
 var PRIORITY_VISUAL_LAYOUT = 1000;
+var PRIORITY_VISUAL_PROGRESSIVE_LAYOUT = 1100;
 var PRIORITY_VISUAL_GLOBAL = 2000;
 var PRIORITY_VISUAL_CHART = 3000;
+var PRIORITY_VISUAL_POST_CHART_LAYOUT = 3500;
 var PRIORITY_VISUAL_COMPONENT = 4000;
 // FIXME
 // necessary?
@@ -26834,8 +27276,10 @@ var PRIORITY = {
     },
     VISUAL: {
         LAYOUT: PRIORITY_VISUAL_LAYOUT,
+        PROGRESSIVE_LAYOUT: PRIORITY_VISUAL_PROGRESSIVE_LAYOUT,
         GLOBAL: PRIORITY_VISUAL_GLOBAL,
         CHART: PRIORITY_VISUAL_CHART,
+        POST_CHART_LAYOUT: PRIORITY_VISUAL_POST_CHART_LAYOUT,
         COMPONENT: PRIORITY_VISUAL_COMPONENT,
         BRUSH: PRIORITY_VISUAL_BRUSH
     }
@@ -26917,7 +27361,7 @@ function ECharts(dom, theme$$1, opts) {
     });
 
     /**
-     * Expect 60 pfs.
+     * Expect 60 fps.
      * @type {Function}
      * @private
      */
@@ -27116,7 +27560,7 @@ echartsProto.setOption = function (option, notMerge, lazyUpdate) {
     if (!this._model || notMerge) {
         var optionManager = new OptionManager(this._api);
         var theme$$1 = this._theme;
-        var ecModel = this._model = new GlobalModel(null, null, theme$$1, optionManager);
+        var ecModel = this._model = new GlobalModel();
         ecModel.scheduler = this._scheduler;
         ecModel.init(null, null, theme$$1, optionManager);
     }
@@ -27322,6 +27766,21 @@ echartsProto.getConnectedDataURL = function (opts) {
         targetCanvas.height = height;
         var zr = init$1(targetCanvas);
 
+        // Background between the charts
+        if (opts.connectedBackgroundColor) {
+            zr.add(new Rect({
+                shape: {
+                    x: 0,
+                    y: 0,
+                    width: width,
+                    height: height
+                },
+                style: {
+                    fill: opts.connectedBackgroundColor
+                }
+            }));
+        }
+
         each(canvasList, function (item) {
             var img = new ZImage({
                 style: {
@@ -28113,7 +28572,7 @@ function prepareView(ecIns, type, ecModel, scheduler) {
         if (!view) {
             var classType = parseClassType(model.type);
             var Clazz = isComponent
-                ? Component.getClass(classType.main, classType.sub)
+                ? Component$1.getClass(classType.main, classType.sub)
                 : Chart.getClass(classType.sub);
 
             if (__DEV__) {
@@ -28240,7 +28699,7 @@ function renderSeries(ecIns, ecModel, api, payload, dirtyMap) {
     scheduler.unfinished |= unfinished;
 
     // If use hover layer
-    updateHoverLayerStatus(ecIns._zr, ecModel);
+    updateHoverLayerStatus(ecIns, ecModel);
 
     // Add aria
     aria(ecIns._zr.dom, ecModel);
@@ -28395,19 +28854,26 @@ echartsProto.dispose = function () {
 
 mixin(ECharts, Eventful);
 
-function updateHoverLayerStatus(zr, ecModel) {
+function updateHoverLayerStatus(ecIns, ecModel) {
+    var zr = ecIns._zr;
     var storage = zr.storage;
     var elCount = 0;
+
     storage.traverse(function (el) {
-        if (!el.isGroup) {
-            elCount++;
-        }
+        elCount++;
     });
+
     if (elCount > ecModel.get('hoverLayerThreshold') && !env$1.node) {
-        storage.traverse(function (el) {
-            if (!el.isGroup) {
-                // Don't switch back.
-                el.useHoverLayer = true;
+        ecModel.eachSeries(function (seriesModel) {
+            if (seriesModel.preventUsingHoverLayer) {
+                return;
+            }
+            var chartView = ecIns._chartsMap[seriesModel.__viewId];
+            if (chartView.__alive) {
+                chartView.group.traverse(function (el) {
+                    // Don't switch back.
+                    el.useHoverLayer = true;
+                });
             }
         });
     }
@@ -28697,7 +29163,7 @@ function enableConnect(chart) {
  * @param {Object} [theme]
  * @param {Object} opts
  * @param {number} [opts.devicePixelRatio] Use window.devicePixelRatio by default
- * @param {string} [opts.renderer] Currently only 'canvas' is supported.
+ * @param {string} [opts.renderer] Can choose 'canvas' or 'svg' to render the chart.
  * @param {number} [opts.width] Use clientWidth of the input `dom` by default.
  *                              Can be 'auto' (the same as null/undefined)
  * @param {number} [opts.height] Use clientHeight of the input `dom` by default.
@@ -28736,7 +29202,10 @@ function init(dom, theme$$1, opts) {
                 || (!dom.clientHeight && (!opts || opts.height == null))
             )
         ) {
-            console.warn('Can\'t get dom width or height');
+            console.warn('Can\'t get DOM width or height. Please check '
+                + 'dom.clientWidth and dom.clientHeight. They should not be 0.'
+                + 'For example, you may need to call this in the callback '
+                + 'of window.onload.');
         }
     }
 
@@ -28991,7 +29460,7 @@ function extendComponentView(opts/*, superClass*/) {
     //     var classType = parseClassType(superClass);
     //     Clazz = ComponentView.getClass(classType.main, classType.sub, true);
     // }
-    return Component.extend(opts);
+    return Component$1.extend(opts);
 }
 
 /**
@@ -29289,6 +29758,12 @@ function summarizeDimensions(data) {
     var defaultedLabel = [];
     var defaultedTooltip = [];
 
+    // See the comment of `List.js#userOutput`.
+    var userOutput = summary.userOutput = {
+        dimensionNames: data.dimensions.slice(),
+        encode: {}
+    };
+
     each$1(data.dimensions, function (dimName) {
         var dimItem = data.getDimensionInfo(dimName);
 
@@ -29297,11 +29772,9 @@ function summarizeDimensions(data) {
             if (__DEV__) {
                 assert$1(OTHER_DIMENSIONS.get(coordDim) == null);
             }
-            var coordDimArr = encode[coordDim];
-            if (!encode.hasOwnProperty(coordDim)) {
-                coordDimArr = encode[coordDim] = [];
-            }
-            coordDimArr[dimItem.coordDimIndex] = dimName;
+
+            var coordDimIndex = dimItem.coordDimIndex;
+            getOrCreateEncodeArr(encode, coordDim)[coordDimIndex] = dimName;
 
             if (!dimItem.isExtraCoord) {
                 notExtraCoordDimMap.set(coordDim, 1);
@@ -29313,6 +29786,10 @@ function summarizeDimensions(data) {
                 if (mayLabelDimType(dimItem.type)) {
                     defaultedLabel[0] = dimName;
                 }
+
+                // User output encode do not contain generated coords.
+                // And it only has index. User can use index to retrieve value from the raw item array.
+                getOrCreateEncodeArr(userOutput.encode, coordDim)[coordDimIndex] = dimItem.index;
             }
             if (dimItem.defaultTooltip) {
                 defaultedTooltip.push(dimName);
@@ -29320,14 +29797,11 @@ function summarizeDimensions(data) {
         }
 
         OTHER_DIMENSIONS.each(function (v, otherDim) {
-            var otherDimArr = encode[otherDim];
-            if (!encode.hasOwnProperty(otherDim)) {
-                otherDimArr = encode[otherDim] = [];
-            }
+            var encodeArr = getOrCreateEncodeArr(encode, otherDim);
 
             var dimIndex = dimItem.otherDims[otherDim];
             if (dimIndex != null && dimIndex !== false) {
-                otherDimArr[dimIndex] = dimItem.name;
+                encodeArr[dimIndex] = dimItem.name;
             }
         });
     });
@@ -29370,6 +29844,13 @@ function summarizeDimensions(data) {
     return summary;
 }
 
+function getOrCreateEncodeArr(encode, dim) {
+    if (!encode.hasOwnProperty(dim)) {
+        encode[dim] = [];
+    }
+    return encode[dim];
+}
+
 function getDimensionTypeByAxis(axisType) {
     return axisType === 'category'
         ? 'ordinal'
@@ -29695,6 +30176,21 @@ var List = function (dimensions, hostModel) {
      * @private
      */
     this._calculationInfo = {};
+
+    /**
+     * User output info of this data.
+     * DO NOT use it in other places!
+     *
+     * When preparing user params for user callbacks, we have
+     * to clone these inner data structures to prevent users
+     * from modifying them to effect built-in logic. And for
+     * performance consideration we make this `userOutput` to
+     * avoid clone them too many times.
+     *
+     * @type {Object}
+     * @readOnly
+     */
+    this.userOutput = this._dimensionsSummary.userOutput;
 };
 
 var listProto = List.prototype;
@@ -29708,15 +30204,31 @@ listProto.type = 'list';
 listProto.hasItemOption = true;
 
 /**
+ * The meanings of the input parameter `dim`:
+ *
+ * + If dim is a number (e.g., `1`), it means the index of the dimension.
+ *   For example, `getDimension(0)` will return 'x' or 'lng' or 'radius'.
+ * + If dim is a number-like string (e.g., `"1"`):
+ *     + If there is the same concrete dim name defined in `this.dimensions`, it means that concrete name.
+ *     + If not, it will be converted to a number, which means the index of the dimension.
+ *        (why? because of the backward compatbility. We have been tolerating number-like string in
+ *        dimension setting, although now it seems that it is not a good idea.)
+ *     For example, `visualMap[i].dimension: "1"` is the same meaning as `visualMap[i].dimension: 1`,
+ *     if no dimension name is defined as `"1"`.
+ * + If dim is a not-number-like string, it means the concrete dim name.
+ *   For example, it can be be default name `"x"`, `"y"`, `"z"`, `"lng"`, `"lat"`, `"angle"`, `"radius"`,
+ *   or customized in `dimensions` property of option like `"age"`.
+ *
  * Get dimension name
- * @param {string|number} dim
- *        Dimension can be concrete names like x, y, z, lng, lat, angle, radius
- *        Or a ordinal number. For example getDimensionInfo(0) will return 'x' or 'lng' or 'radius'
+ * @param {string|number} dim See above.
  * @return {string} Concrete dim name.
  */
 listProto.getDimension = function (dim) {
-    if (!isNaN(dim)) {
-        dim = this.dimensions[dim] || dim;
+    if (typeof dim === 'number'
+        // If being a number-like string but not being defined a dimension name.
+        || (!isNaN(dim) && !this._dimensionInfos.hasOwnProperty(dim))
+    ) {
+        dim = this.dimensions[dim];
     }
     return dim;
 };
@@ -30250,14 +30762,11 @@ listProto.getValues = function (dimensions, idx /*, stack */) {
  */
 listProto.hasValue = function (idx) {
     var dataDimsOnCoord = this._dimensionsSummary.dataDimsOnCoord;
-    var dimensionInfos = this._dimensionInfos;
     for (var i = 0, len = dataDimsOnCoord.length; i < len; i++) {
-        if (
-            // Ordinal type can be string or number
-            dimensionInfos[dataDimsOnCoord[i]].type !== 'ordinal'
-            // FIXME check ordinal when using index?
-            && isNaN(this.get(dataDimsOnCoord[i], idx))
-        ) {
+        // Ordinal type originally can be string or number.
+        // But when an ordinal type is used on coord, it can
+        // not be string but only number. So we can also use isNaN.
+        if (isNaN(this.get(dataDimsOnCoord[i], idx))) {
             return false;
         }
     }
@@ -31498,7 +32007,7 @@ function completeDimensions(sysDims, source, opt) {
         // Note: It is allowed that `dataDims.length` is `0`, e.g., options is
         // `{encode: {x: -1, y: 1}}`. Should not filter anything in
         // this case.
-        if (dataDims.length === 1 && dataDims[0] < 0) {
+        if (dataDims.length === 1 && !isString(dataDims[0]) && dataDims[0] < 0) {
             encodeDef.set(coordDim, false);
             return;
         }
@@ -32447,7 +32956,7 @@ OrdinalScale.create = function () {
  * For testable.
  */
 
-var roundNumber$1 = round$2;
+var roundNumber$1 = round$1;
 
 /**
  * @param {Array.<number>} extent Both extent[0] and extent[1] should be valid number.
@@ -32568,7 +33077,7 @@ function intervalScaleGetTicks(interval, extent, niceTickExtent, intervalPrecisi
  */
 
 
-var roundNumber = round$2;
+var roundNumber = round$1;
 
 /**
  * @alias module:echarts/coord/scale/Interval
@@ -33037,7 +33546,8 @@ function layout(seriesType, ecModel) {
             var value = data.get(valueDim, idx);
             var baseValue = data.get(baseDim, idx);
 
-            if (isNaN(value)) {
+            // If dataZoom in filteMode: 'empty', the baseValue can be set as NaN in "axisProxy".
+            if (isNaN(value) || isNaN(baseValue)) {
                 continue;
             }
 
@@ -33131,23 +33641,29 @@ var largeLayout = {
         return {progress: progress};
 
         function progress(params, data) {
-            var largePoints = new LargeArr(params.count * 2);
+            var count = params.count;
+            var largePoints = new LargeArr(count * 2);
+            var largeDataIndices = new LargeArr(count);
             var dataIndex;
             var coord = [];
             var valuePair = [];
-            var offset = 0;
+            var pointsOffset = 0;
+            var idxOffset = 0;
 
             while ((dataIndex = params.next()) != null) {
                 valuePair[valueDimIdx] = data.get(valueDim, dataIndex);
                 valuePair[1 - valueDimIdx] = data.get(baseDim, dataIndex);
 
                 coord = cartesian.dataToPoint(valuePair, null, coord);
-                largePoints[offset++] = coord[0];
-                largePoints[offset++] = coord[1];
+                // Data index might not be in order, depends on `progressiveChunkMode`.
+                largePoints[pointsOffset++] = coord[0];
+                largePoints[pointsOffset++] = coord[1];
+                largeDataIndices[idxOffset++] = dataIndex;
             }
 
             data.setLayout({
                 largePoints: largePoints,
+                largeDataIndices: largeDataIndices,
                 barWidth: barWidth,
                 valueAxisStart: getValueAxisStart(baseAxis, valueAxis, false),
                 valueAxisHorizontal: valueAxisHorizontal
@@ -33290,10 +33806,10 @@ var TimeScale = IntervalScale.extend({
         var interval = this._interval;
 
         if (!opt.fixMin) {
-            extent[0] = round$2(mathFloor(extent[0] / interval) * interval);
+            extent[0] = round$1(mathFloor(extent[0] / interval) * interval);
         }
         if (!opt.fixMax) {
-            extent[1] = round$2(mathCeil(extent[1] / interval) * interval);
+            extent[1] = round$1(mathCeil(extent[1] / interval) * interval);
         }
     },
 
@@ -33439,7 +33955,7 @@ var scaleProto$1 = Scale.prototype;
 var intervalScaleProto$1 = IntervalScale.prototype;
 
 var getPrecisionSafe$1 = getPrecisionSafe;
-var roundingErrorFix = round$2;
+var roundingErrorFix = round$1;
 
 var mathFloor$1 = Math.floor;
 var mathCeil$1 = Math.ceil;
@@ -33467,7 +33983,7 @@ var LogScale = Scale.extend({
         var originalExtent = originalScale.getExtent();
 
         return map(intervalScaleProto$1.getTicks.call(this), function (val) {
-            var powVal = round$2(mathPow$1(this.base, val));
+            var powVal = round$1(mathPow$1(this.base, val));
 
             // Fix #4158
             powVal = (val === extent[0] && originalScale.__fixMin)
@@ -33572,8 +34088,8 @@ var LogScale = Scale.extend({
         }
 
         var niceExtent = [
-            round$2(mathCeil$1(extent[0] / interval) * interval),
-            round$2(mathFloor$1(extent[1] / interval) * interval)
+            round$1(mathCeil$1(extent[0] / interval) * interval),
+            round$1(mathFloor$1(extent[1] / interval) * interval)
         ];
 
         this._interval = interval;
@@ -34365,21 +34881,19 @@ var SymbolClz = extendShape({
         height: 0
     },
 
-    beforeBrush: function () {
-        var style = this.style;
+    calculateTextPosition: function (out, style, rect) {
+        var res = calculateTextPosition(out, style, rect);
         var shape = this.shape;
-        // FIXME
-        if (shape.symbolType === 'pin' && style.textPosition === 'inside') {
-            style.textPosition = ['50%', '40%'];
-            style.textAlign = 'center';
-            style.textVerticalAlign = 'middle';
+        if (shape && shape.symbolType === 'pin' && style.textPosition === 'inside') {
+            res.y = rect.y + rect.height * 0.4;
         }
+        return res;
     },
 
     buildPath: function (ctx, shape, inBundle) {
         var symbolType = shape.symbolType;
-        var proxySymbol = symbolBuildProxies[symbolType];
-        if (shape.symbolType !== 'none') {
+        if (symbolType !== 'none') {
+            var proxySymbol = symbolBuildProxies[symbolType];
             if (!proxySymbol) {
                 // Default rect
                 symbolType = 'rect';
@@ -35215,7 +35729,7 @@ function makeLabelsByNumericCategoryInterval(axis, categoryInterval, onlyTick) {
         addItem(tickValue);
     }
 
-    if (includeMaxLabel && tickValue !== ordinalExtent[1]) {
+    if (includeMaxLabel && tickValue - step !== ordinalExtent[1]) {
         addItem(ordinalExtent[1]);
     }
 
@@ -35949,7 +36463,7 @@ symbolProto.setZ = function (zlevel, z) {
 symbolProto.setDraggable = function (draggable) {
     var symbolPath = this.childAt(0);
     symbolPath.draggable = draggable;
-    symbolPath.cursor = draggable ? 'move' : 'pointer';
+    symbolPath.cursor = draggable ? 'move' : symbolPath.cursor;
 };
 
 /**
@@ -36115,64 +36629,44 @@ symbolProto._updateCommon = function (data, idx, symbolSize, seriesScope) {
         return useNameLabel ? data.getName(idx) : getDefaultLabel(data, idx);
     }
 
-    symbolPath.off('mouseover')
-        .off('mouseout')
-        .off('emphasis')
-        .off('normal');
-
+    symbolPath.__symbolOriginalScale = getScale(symbolSize);
     symbolPath.hoverStyle = hoverItemStyle;
+    symbolPath.highDownOnUpdate = (
+        hoverAnimation && seriesModel.isAnimationEnabled()
+    ) ? highDownOnUpdate : null;
 
-    // FIXME
-    // Do not use symbol.trigger('emphasis'), but use symbol.highlight() instead.
     setHoverStyle(symbolPath);
-
-    symbolPath.__symbolOriginalScale = getScale(symbolSize);
-
-    if (hoverAnimation && seriesModel.isAnimationEnabled()) {
-        // Note: consider `off`, should use static function here.
-        symbolPath.on('mouseover', onMouseOver)
-            .on('mouseout', onMouseOut)
-            .on('emphasis', onEmphasis)
-            .on('normal', onNormal);
-    }
 };
 
-function onMouseOver() {
-    // see comment in `graphic.isInEmphasis`
-    !isInEmphasis(this) && onEmphasis.call(this);
-}
-
-function onMouseOut() {
-    // see comment in `graphic.isInEmphasis`
-    !isInEmphasis(this) && onNormal.call(this);
-}
-
-function onEmphasis() {
+function highDownOnUpdate(fromState, toState) {
     // Do not support this hover animation util some scenario required.
     // Animation can only be supported in hover layer when using `el.incremetal`.
     if (this.incremental || this.useHoverLayer) {
         return;
     }
-    var scale = this.__symbolOriginalScale;
-    var ratio = scale[1] / scale[0];
-    this.animateTo({
-        scale: [
-            Math.max(scale[0] * 1.1, scale[0] + 3),
-            Math.max(scale[1] * 1.1, scale[1] + 3 * ratio)
-        ]
-    }, 400, 'elasticOut');
-}
 
-function onNormal() {
-    if (this.incremental || this.useHoverLayer) {
-        return;
+    if (toState === 'emphasis') {
+        var scale = this.__symbolOriginalScale;
+        var ratio = scale[1] / scale[0];
+        var emphasisOpt = {
+            scale: [
+                Math.max(scale[0] * 1.1, scale[0] + 3),
+                Math.max(scale[1] * 1.1, scale[1] + 3 * ratio)
+            ]
+        };
+        // FIXME
+        // modify it after support stop specified animation.
+        // toState === fromState
+        //     ? (this.stopAnimation(), this.attr(emphasisOpt))
+        this.animateTo(emphasisOpt, 400, 'elasticOut');
+    }
+    else if (toState === 'normal') {
+        this.animateTo({
+            scale: this.__symbolOriginalScale
+        }, 400, 'elasticOut');
     }
-    this.animateTo({
-        scale: this.__symbolOriginalScale
-    }, 400, 'elasticOut');
 }
 
-
 /**
  * @param {Function} cb
  * @param {Object} [opt]
@@ -37246,10 +37740,10 @@ function createPolarClipShape(polar, hasAnimation, forSymbol, seriesModel) {
 
     var clipPath = new Sector({
         shape: {
-            cx: round$2(polar.cx, 1),
-            cy: round$2(polar.cy, 1),
-            r0: round$2(radiusExtent[0], 1),
-            r: round$2(radiusExtent[1], 1),
+            cx: round$1(polar.cx, 1),
+            cy: round$1(polar.cy, 1),
+            r0: round$1(radiusExtent[0], 1),
+            r: round$1(radiusExtent[1], 1),
             startAngle: -angleExtent[0] * RADIAN,
             endAngle: -angleExtent[1] * RADIAN,
             clockwise: angleAxis.inverse
@@ -37909,7 +38403,6 @@ Chart.extend({
 * under the License.
 */
 
-
 var visualSymbol = function (seriesType, defaultSymbolType, legendSymbol) {
     // Encoding visual for all series include which is filtered for legend drawing
     return {
@@ -37921,14 +38414,24 @@ var visualSymbol = function (seriesType, defaultSymbolType, legendSymbol) {
         reset: function (seriesModel, ecModel, api) {
             var data = seriesModel.getData();
 
-            var symbolType = seriesModel.get('symbol') || defaultSymbolType;
+            var symbolType = seriesModel.get('symbol');
             var symbolSize = seriesModel.get('symbolSize');
             var keepAspect = seriesModel.get('symbolKeepAspect');
 
+            var hasSymbolTypeCallback = isFunction$1(symbolType);
+            var hasSymbolSizeCallback = isFunction$1(symbolSize);
+            var hasCallback = hasSymbolTypeCallback || hasSymbolSizeCallback;
+            var seriesSymbol = (!hasSymbolTypeCallback && symbolType) ? symbolType : defaultSymbolType;
+            var seriesSymbolSize = !hasSymbolSizeCallback ? symbolSize : null;
+
             data.setVisual({
-                legendSymbol: legendSymbol || symbolType,
-                symbol: symbolType,
-                symbolSize: symbolSize,
+                legendSymbol: legendSymbol || seriesSymbol,
+                // If seting callback functions on `symbol` or `symbolSize`, for simplicity and avoiding
+                // to bring trouble, we do not pick a reuslt from one of its calling on data item here,
+                // but just use the default value. Callback on `symbol` or `symbolSize` is convenient in
+                // some cases but generally it is not recommanded.
+                symbol: seriesSymbol,
+                symbolSize: seriesSymbolSize,
                 symbolKeepAspect: keepAspect
             });
 
@@ -37937,23 +38440,19 @@ var visualSymbol = function (seriesType, defaultSymbolType, legendSymbol) {
                 return;
             }
 
-            var hasCallback = typeof symbolSize === 'function';
-
             function dataEach(data, idx) {
-                if (typeof symbolSize === 'function') {
+                if (hasCallback) {
                     var rawValue = seriesModel.getRawValue(idx);
-                    // FIXME
                     var params = seriesModel.getDataParams(idx);
-                    data.setItemVisual(idx, 'symbolSize', symbolSize(rawValue, params));
+                    hasSymbolTypeCallback && data.setItemVisual(idx, 'symbol', symbolType(rawValue, params));
+                    hasSymbolSizeCallback && data.setItemVisual(idx, 'symbolSize', symbolSize(rawValue, params));
                 }
 
                 if (data.hasItemOption) {
                     var itemModel = data.getItemModel(idx);
                     var itemSymbolType = itemModel.getShallow('symbol', true);
-                    var itemSymbolSize = itemModel.getShallow('symbolSize',
-                        true);
-                    var itemSymbolKeepAspect
-                        = itemModel.getShallow('symbolKeepAspect', true);
+                    var itemSymbolSize = itemModel.getShallow('symbolSize', true);
+                    var itemSymbolKeepAspect = itemModel.getShallow('symbolKeepAspect', true);
 
                     // If has item symbol
                     if (itemSymbolType != null) {
@@ -37964,8 +38463,7 @@ var visualSymbol = function (seriesType, defaultSymbolType, legendSymbol) {
                         data.setItemVisual(idx, 'symbolSize', itemSymbolSize);
                     }
                     if (itemSymbolKeepAspect != null) {
-                        data.setItemVisual(idx, 'symbolKeepAspect',
-                            itemSymbolKeepAspect);
+                        data.setItemVisual(idx, 'symbolKeepAspect', itemSymbolKeepAspect);
                     }
                 }
             }
@@ -39032,7 +39530,7 @@ function Grid(gridModel, ecModel, api) {
     this._coordsList = [];
 
     /**
-     * @type {Object.<string, module:echarts/coord/cartesian/Axis2D>}
+     * @type {Object.<string, Array.<module:echarts/coord/cartesian/Axis2D>>}
      * @private
      */
     this._axesMap = {};
@@ -39392,20 +39890,14 @@ gridProto._initCartesian = function (gridModel, ecModel, api) {
                 // Fix position
                 if (axisPosition !== 'top' && axisPosition !== 'bottom') {
                     // Default bottom of X
-                    axisPosition = 'bottom';
-                    if (axisPositionUsed[axisPosition]) {
-                        axisPosition = axisPosition === 'top' ? 'bottom' : 'top';
-                    }
+                    axisPosition = axisPositionUsed.bottom ? 'top' : 'bottom';
                 }
             }
             else {
                 // Fix position
                 if (axisPosition !== 'left' && axisPosition !== 'right') {
                     // Default left of Y
-                    axisPosition = 'left';
-                    if (axisPositionUsed[axisPosition]) {
-                        axisPosition = axisPosition === 'left' ? 'right' : 'left';
-                    }
+                    axisPosition = axisPositionUsed.left ? 'right' : 'left';
                 }
             }
             axisPositionUsed[axisPosition] = true;
@@ -39637,15 +40129,6 @@ CoordinateSystemManager.register('cartesian2d', Grid);
 
 var PI$2 = Math.PI;
 
-function makeAxisEventDataBase(axisModel) {
-    var eventData = {
-        componentType: axisModel.mainType,
-        componentIndex: axisModel.componentIndex
-    };
-    eventData[axisModel.mainType + 'Index'] = axisModel.componentIndex;
-    return eventData;
-}
-
 /**
  * A final axis is translated and rotated from a "standard axis".
  * So opt.position and opt.rotation is required.
@@ -39776,10 +40259,10 @@ var builders = {
             axisModel.getModel('axisLine.lineStyle').getLineStyle()
         );
 
-        this.group.add(new Line(subPixelOptimizeLine({
+        this.group.add(new Line({
             // Id for animation
             anid: 'line',
-
+            subPixelOptimize: true,
             shape: {
                 x1: pt1[0],
                 y1: pt1[1],
@@ -39790,7 +40273,7 @@ var builders = {
             strokeContainThreshold: opt.strokeContainThreshold || 5,
             silent: true,
             z2: 1
-        })));
+        }));
 
         var arrows = axisModel.get('axisLine.symbol');
         var arrowSize = axisModel.get('axisLine.symbolSize');
@@ -39962,7 +40445,7 @@ var builders = {
 
             position: pos,
             rotation: labelLayout.rotation,
-            silent: isSilent(axisModel),
+            silent: isLabelSilent(axisModel),
             z2: 1,
             tooltip: (tooltipOpt && tooltipOpt.show)
                 ? extend({
@@ -39980,8 +40463,10 @@ var builders = {
             textFont: textFont,
             textFill: textStyleModel.getTextColor()
                 || axisModel.get('axisLine.lineStyle.color'),
-            textAlign: labelLayout.textAlign,
-            textVerticalAlign: labelLayout.textVerticalAlign
+            textAlign: textStyleModel.get('align')
+                || labelLayout.textAlign,
+            textVerticalAlign: textStyleModel.get('verticalAlign')
+                || labelLayout.textVerticalAlign
         });
 
         if (axisModel.get('triggerEvent')) {
@@ -40001,6 +40486,15 @@ var builders = {
 
 };
 
+var makeAxisEventDataBase = AxisBuilder.makeAxisEventDataBase = function (axisModel) {
+    var eventData = {
+        componentType: axisModel.mainType,
+        componentIndex: axisModel.componentIndex
+    };
+    eventData[axisModel.mainType + 'Index'] = axisModel.componentIndex;
+    return eventData;
+};
+
 /**
  * @public
  * @static
@@ -40078,14 +40572,14 @@ function endTextLayout(opt, textPosition, textRotate, extent) {
     };
 }
 
-function isSilent(axisModel) {
+var isLabelSilent = AxisBuilder.isLabelSilent = function (axisModel) {
     var tooltipOpt = axisModel.get('tooltip');
     return axisModel.get('silent')
         // Consider mouse cursor, add these restrictions.
         || !(
             axisModel.get('triggerEvent') || (tooltipOpt && tooltipOpt.show)
         );
-}
+};
 
 function fixMinMaxLabelShow(axisModel, labelEls, tickEls) {
     if (shouldShowAllLabels(axisModel.axis)) {
@@ -40206,10 +40700,10 @@ function buildAxisTick(axisBuilder, axisModel, opt) {
             applyTransform(pt2, pt2, matrix);
         }
         // Tick line, Not use group transform to have better line draw
-        var tickEl = new Line(subPixelOptimizeLine({
+        var tickEl = new Line({
             // Id for animation
             anid: 'tick_' + ticksCoords[i].tickValue,
-
+            subPixelOptimize: true,
             shape: {
                 x1: pt1[0],
                 y1: pt1[1],
@@ -40224,7 +40718,7 @@ function buildAxisTick(axisBuilder, axisModel, opt) {
             ),
             z2: 2,
             silent: true
-        }));
+        });
         axisBuilder.group.add(tickEl);
         tickEls.push(tickEl);
     }
@@ -40250,10 +40744,10 @@ function buildAxisLabel(axisBuilder, axisModel, opt) {
     ) * PI$2 / 180;
 
     var labelLayout = innerTextLayout(opt.rotation, labelRotation, opt.labelDirection);
-    var rawCategoryData = axisModel.getCategories(true);
+    var rawCategoryData = axisModel.getCategories && axisModel.getCategories(true);
 
     var labelEls = [];
-    var silent = isSilent(axisModel);
+    var silent = isLabelSilent(axisModel);
     var triggerEvent = axisModel.get('triggerEvent');
 
     each$1(labels, function (labelItem, index) {
@@ -41009,8 +41503,9 @@ var CartesianAxisView = AxisView.extend({
 
             var colorIndex = (lineCount++) % lineColors.length;
             var tickValue = ticksCoords[i].tickValue;
-            this._axisGroup.add(new Line(subPixelOptimizeLine({
+            this._axisGroup.add(new Line({
                 anid: tickValue != null ? 'line_' + ticksCoords[i].tickValue : null,
+                subPixelOptimize: true,
                 shape: {
                     x1: p1[0],
                     y1: p1[1],
@@ -41021,7 +41516,7 @@ var CartesianAxisView = AxisView.extend({
                     stroke: lineColors[colorIndex]
                 }, lineStyle),
                 silent: true
-            })));
+            }));
         }
     },
 
@@ -41464,6 +41959,7 @@ var barItemStyle = {
 */
 
 var BAR_BORDER_WIDTH_QUERY = ['itemStyle', 'barBorderWidth'];
+var _eventPos = [0, 0];
 
 // FIXME
 // Just for compatible with ec2.
@@ -41786,10 +42282,10 @@ var LargePath = Path.extend({
         // a whole line or drawing rects.
         var points = shape.points;
         var startPoint = this.__startPoint;
-        var valueIdx = this.__valueIdx;
+        var baseDimIdx = this.__baseDimIdx;
 
         for (var i = 0; i < points.length; i += 2) {
-            startPoint[this.__valueIdx] = points[i + valueIdx];
+            startPoint[baseDimIdx] = points[i + baseDimIdx];
             ctx.moveTo(startPoint[0], startPoint[1]);
             ctx.lineTo(points[i], points[i + 1]);
         }
@@ -41800,17 +42296,68 @@ function createLarge(seriesModel, group, incremental) {
     // TODO support polar
     var data = seriesModel.getData();
     var startPoint = [];
-    var valueIdx = data.getLayout('valueAxisHorizontal') ? 1 : 0;
-    startPoint[1 - valueIdx] = data.getLayout('valueAxisStart');
+    var baseDimIdx = data.getLayout('valueAxisHorizontal') ? 1 : 0;
+    startPoint[1 - baseDimIdx] = data.getLayout('valueAxisStart');
 
     var el = new LargePath({
         shape: {points: data.getLayout('largePoints')},
         incremental: !!incremental,
         __startPoint: startPoint,
-        __valueIdx: valueIdx
+        __baseDimIdx: baseDimIdx,
+        __largeDataIndices: data.getLayout('largeDataIndices'),
+        __barWidth: data.getLayout('barWidth')
     });
     group.add(el);
     setLargeStyle(el, seriesModel, data);
+
+    // Enable tooltip and user mouse/touch event handlers.
+    el.seriesIndex = seriesModel.seriesIndex;
+
+    if (!seriesModel.get('silent')) {
+        el.on('mousedown', largePathUpdateDataIndex);
+        el.on('mousemove', largePathUpdateDataIndex);
+    }
+}
+
+// Use throttle to avoid frequently traverse to find dataIndex.
+var largePathUpdateDataIndex = throttle(function (event) {
+    var largePath = this;
+    var dataIndex = largePathFindDataIndex(largePath, event.offsetX, event.offsetY);
+    largePath.dataIndex = dataIndex >= 0 ? dataIndex : null;
+}, 30, false);
+
+function largePathFindDataIndex(largePath, x, y) {
+    var baseDimIdx = largePath.__baseDimIdx;
+    var valueDimIdx = 1 - baseDimIdx;
+    var points = largePath.shape.points;
+    var largeDataIndices = largePath.__largeDataIndices;
+    var barWidthHalf = Math.abs(largePath.__barWidth / 2);
+    var startValueVal = largePath.__startPoint[valueDimIdx];
+
+    _eventPos[0] = x;
+    _eventPos[1] = y;
+    var pointerBaseVal = _eventPos[baseDimIdx];
+    var pointerValueVal = _eventPos[1 - baseDimIdx];
+    var baseLowerBound = pointerBaseVal - barWidthHalf;
+    var baseUpperBound = pointerBaseVal + barWidthHalf;
+
+    for (var i = 0, len = points.length / 2; i < len; i++) {
+        var ii = i * 2;
+        var barBaseVal = points[ii + baseDimIdx];
+        var barValueVal = points[ii + valueDimIdx];
+        if (
+            barBaseVal >= baseLowerBound && barBaseVal <= baseUpperBound
+            && (
+                startValueVal <= barValueVal
+                    ? (pointerValueVal >= startValueVal && pointerValueVal <= barValueVal)
+                    : (pointerValueVal >= barValueVal && pointerValueVal <= startValueVal)
+            )
+        ) {
+            return largeDataIndices[i];
+        }
+    }
+
+    return -1;
 }
 
 function setLargeStyle(el, seriesModel, data) {
@@ -41843,9 +42390,10 @@ function setLargeStyle(el, seriesModel, data) {
 */
 
 // In case developer forget to include grid component
-registerLayout(curry(layout, 'bar'));
-// Should after normal bar layout, otherwise it is blocked by normal bar layout.
-registerLayout(largeLayout);
+registerLayout(PRIORITY.VISUAL.LAYOUT, curry(layout, 'bar'));
+// Use higher prority to avoid to be blocked by other overall layout, which do not
+// only exist in this module, but probably also exist in other modules, like `barPolar`.
+registerLayout(PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, largeLayout);
 
 registerVisual({
     seriesType: 'bar',
@@ -42125,6 +42673,11 @@ var PieSeries = extendSeriesModel({
         startAngle: 90,
         // 最小角度改为0
         minAngle: 0,
+
+        // If the angle of a sector less than `minShowLabelAngle`,
+        // the label will not be displayed.
+        minShowLabelAngle: 0,
+
         // 选中时扇区偏移量
         selectedOffset: 10,
         // 高亮扇区偏移量
@@ -42275,20 +42828,6 @@ function PiePiece(data, idx) {
     this.add(text);
 
     this.updateData(data, idx, true);
-
-    // Hover to change label and labelLine
-    function onEmphasis() {
-        polyline.ignore = polyline.hoverIgnore;
-        text.ignore = text.hoverIgnore;
-    }
-    function onNormal() {
-        polyline.ignore = polyline.normalIgnore;
-        text.ignore = text.normalIgnore;
-    }
-    this.on('emphasis', onEmphasis)
-        .on('normal', onNormal)
-        .on('mouseover', onEmphasis)
-        .on('mouseout', onNormal);
 }
 
 var piePieceProto = PiePiece.prototype;
@@ -42296,6 +42835,8 @@ var piePieceProto = PiePiece.prototype;
 piePieceProto.updateData = function (data, idx, firstCreate) {
 
     var sector = this.childAt(0);
+    var labelLine = this.childAt(1);
+    var labelText = this.childAt(2);
 
     var seriesModel = data.hostModel;
     var itemModel = data.getItemModel(idx);
@@ -42358,34 +42899,36 @@ piePieceProto.updateData = function (data, idx, firstCreate) {
         seriesModel.get('animation')
     );
 
-    function onEmphasis() {
-        // Sector may has animation of updating data. Force to move to the last frame
-        // Or it may stopped on the wrong shape
-        sector.stopAnimation(true);
-        sector.animateTo({
-            shape: {
-                r: layout.r + seriesModel.get('hoverOffset')
-            }
-        }, 300, 'elasticOut');
-    }
-    function onNormal() {
-        sector.stopAnimation(true);
-        sector.animateTo({
-            shape: {
-                r: layout.r
+    this._updateLabel(data, idx);
+
+    this.highDownOnUpdate = (itemModel.get('hoverAnimation') && seriesModel.isAnimationEnabled())
+        ? function (fromState, toState) {
+            if (toState === 'emphasis') {
+                labelLine.ignore = labelLine.hoverIgnore;
+                labelText.ignore = labelText.hoverIgnore;
+
+                // Sector may has animation of updating data. Force to move to the last frame
+                // Or it may stopped on the wrong shape
+                sector.stopAnimation(true);
+                sector.animateTo({
+                    shape: {
+                        r: layout.r + seriesModel.get('hoverOffset')
+                    }
+                }, 300, 'elasticOut');
             }
-        }, 300, 'elasticOut');
-    }
-    sector.off('mouseover').off('mouseout').off('emphasis').off('normal');
-    if (itemModel.get('hoverAnimation') && seriesModel.isAnimationEnabled()) {
-        sector
-            .on('mouseover', onEmphasis)
-            .on('mouseout', onNormal)
-            .on('emphasis', onEmphasis)
-            .on('normal', onNormal);
-    }
+            else {
+                labelLine.ignore = labelLine.normalIgnore;
+                labelText.ignore = labelText.normalIgnore;
 
-    this._updateLabel(data, idx);
+                sector.stopAnimation(true);
+                sector.animateTo({
+                    shape: {
+                        r: layout.r
+                    }
+                }, 300, 'elasticOut');
+            }
+        }
+        : null;
 
     setHoverStyle(this);
 };
@@ -42401,6 +42944,12 @@ piePieceProto._updateLabel = function (data, idx) {
     var labelLayout = layout.label;
     var visualColor = data.getItemVisual(idx, 'color');
 
+    if (!labelLayout || isNaN(labelLayout.x) || isNaN(labelLayout.y)) {
+        labelText.ignore = labelText.normalIgnore = labelText.hoverIgnore =
+        labelLine.ignore = labelLine.normalIgnore = labelLine.hoverIgnore = true;
+        return;
+    }
+
     updateProps(labelLine, {
         shape: {
             points: labelLayout.linePoints || [
@@ -42498,7 +43047,6 @@ var PieView = Chart.extend({
         );
 
         var selectedMode = seriesModel.get('selectedMode');
-
         data.diff(oldData)
             .add(function (idx) {
                 var piePiece = new PiePiece(data, idx);
@@ -42537,6 +43085,10 @@ var PieView = Chart.extend({
             && animationType !== 'scale'
         ) {
             var shape = data.getItemLayout(0);
+            for (var s = 1; isNaN(shape.startAngle) && s < data.count(); ++s) {
+                shape = data.getItemLayout(s);
+            }
+
             var r = Math.max(api.getWidth(), api.getHeight()) / 2;
 
             var removeClipPath = bind(group.removeClipPath, group);
@@ -42643,7 +43195,8 @@ var createDataSelectAction = function (seriesType, actionInfos) {
             );
             return {
                 name: payload.name,
-                selected: selected
+                selected: selected,
+                seriesId: payload.seriesId
             };
         });
     });
@@ -42749,6 +43302,8 @@ var dataColor = function (seriesType) {
 
 // FIXME emphasis label position is not same with normal label position
 
+var RADIAN$1 = Math.PI / 180;
+
 function adjustSingleSide(list, cx, cy, r, dir, viewWidth, viewHeight) {
     list.sort(function (a, b) {
         return a.y - b.y;
@@ -42882,12 +43437,13 @@ function isPositionCenter(layout) {
     return layout.position === 'center';
 }
 
-var labelLayout = function (seriesModel, r, viewWidth, viewHeight) {
+var labelLayout = function (seriesModel, r, viewWidth, viewHeight, sum) {
     var data = seriesModel.getData();
     var labelLayoutList = [];
     var cx;
     var cy;
     var hasLabelRotate = false;
+    var minShowLabelRadian = (seriesModel.get('minShowLabelAngle') || 0) * RADIAN$1;
 
     data.each(function (idx) {
         var layout = data.getItemLayout(idx);
@@ -42901,6 +43457,10 @@ var labelLayout = function (seriesModel, r, viewWidth, viewHeight) {
         var labelLineLen = labelLineModel.get('length');
         var labelLineLen2 = labelLineModel.get('length2');
 
+        if (layout.angle < minShowLabelRadian) {
+            return;
+        }
+
         var midAngle = (layout.startAngle + layout.endAngle) / 2;
         var dx = Math.cos(midAngle);
         var dy = Math.sin(midAngle);
@@ -42942,8 +43502,16 @@ var labelLayout = function (seriesModel, r, viewWidth, viewHeight) {
         }
         var font = labelModel.getFont();
 
-        var labelRotate = labelModel.get('rotate')
-            ? (dx < 0 ? -midAngle + Math.PI : -midAngle) : 0;
+        var labelRotate;
+        var rotate = labelModel.get('rotate');
+        if (typeof rotate === 'number') {
+            labelRotate = rotate * (Math.PI / 180);
+        }
+        else {
+            labelRotate = rotate
+                ? (dx < 0 ? -midAngle + Math.PI : -midAngle)
+                : 0;
+        }
         var text = seriesModel.getFormattedLabel(idx, 'normal')
                     || data.getName(idx);
         var textRect = getBoundingRect(
@@ -43995,8 +44563,8 @@ Radar.prototype.update = function (ecModel, api) {
             var center = Math.round((rawExtent[0] + rawExtent[1]) / 2 / interval) * interval;
             var halfSplitNumber = Math.round(splitNumber / 2);
             scale.setExtent(
-                round$2(center - halfSplitNumber * interval),
-                round$2(center + (splitNumber - halfSplitNumber) * interval)
+                round$1(center - halfSplitNumber * interval),
+                round$1(center + (splitNumber - halfSplitNumber) * interval)
             );
             scale.setInterval(interval);
         }
@@ -44563,6 +45131,7 @@ extendChartView({
                         points: points
                     }
                 };
+
                 polygon.shape.points = getInitialPoints(points);
                 polyline.shape.points = getInitialPoints(points);
                 initProps(polygon, target, seriesModel, idx);
@@ -44590,6 +45159,7 @@ extendChartView({
                         points: data.getItemLayout(newIdx)
                     }
                 };
+
                 if (!target.shape.points) {
                     return;
                 }
@@ -44653,6 +45223,8 @@ extendChartView({
             symbolGroup.eachChild(function (symbolPath) {
                 symbolPath.setStyle(itemStyle);
                 symbolPath.hoverStyle = clone(itemHoverStyle);
+                var defaultText = data.get(data.dimensions[symbolPath.__dimIdx], idx);
+                (defaultText == null || isNaN(defaultText)) && (defaultText = '');
 
                 setLabelStyle(
                     symbolPath.style, symbolPath.hoverStyle, labelModel, labelHoverModel,
@@ -44660,27 +45232,16 @@ extendChartView({
                         labelFetcher: data.hostModel,
                         labelDataIndex: idx,
                         labelDimIndex: symbolPath.__dimIdx,
-                        defaultText: data.get(data.dimensions[symbolPath.__dimIdx], idx),
+                        defaultText: defaultText,
                         autoColor: color,
                         isRectText: true
                     }
                 );
             });
 
-            function onEmphasis() {
-                polygon.attr('ignore', hoverPolygonIgnore);
-            }
-
-            function onNormal() {
-                polygon.attr('ignore', polygonIgnore);
-            }
-
-            itemGroup.off('mouseover').off('mouseout').off('normal').off('emphasis');
-            itemGroup.on('emphasis', onEmphasis)
-                .on('mouseover', onEmphasis)
-                .on('normal', onNormal)
-                .on('mouseout', onNormal);
-
+            itemGroup.highDownOnUpdate = function (fromState, toState) {
+                polygon.attr('ignore', toState === 'emphasis' ? hoverPolygonIgnore : polygonIgnore);
+            };
             setHoverStyle(itemGroup);
         });
 
@@ -44714,7 +45275,6 @@ extendChartView({
 * under the License.
 */
 
-
 var radarLayout = function (ecModel) {
     ecModel.eachSeriesByType('radar', function (seriesModel) {
         var data = seriesModel.getData();
@@ -44724,23 +45284,43 @@ var radarLayout = function (ecModel) {
             return;
         }
 
-        function pointsConverter(val, idx) {
-            points[idx] = points[idx] || [];
-            points[idx][i] = coordSys.dataToPoint(val, i);
-        }
         var axes = coordSys.getIndicatorAxes();
-        for (var i = 0; i < axes.length; i++) {
-            data.each(data.mapDimension(axes[i].dim), pointsConverter);
-        }
 
+        each$1(axes, function (axis, axisIndex) {
+            data.each(data.mapDimension(axes[axisIndex].dim), function (val, dataIndex) {
+                points[dataIndex] = points[dataIndex] || [];
+                var point = coordSys.dataToPoint(val, axisIndex);
+                points[dataIndex][axisIndex] = isValidPoint(point)
+                    ? point : getValueMissingPoint(coordSys);
+            });
+        });
+
+        // Close polygon
         data.each(function (idx) {
-            // Close polygon
-            points[idx][0] && points[idx].push(points[idx][0].slice());
+            // TODO
+            // Is it appropriate to connect to the next data when some data is missing?
+            // Or, should trade it like `connectNull` in line chart?
+            var firstPoint = find(points[idx], function (point) {
+                return isValidPoint(point);
+            }) || getValueMissingPoint(coordSys);
+
+            // Copy the first actual point to the end of the array
+            points[idx].push(firstPoint.slice());
             data.setItemLayout(idx, points[idx]);
         });
     });
 };
 
+function isValidPoint(point) {
+    return !isNaN(point[0]) && !isNaN(point[1]);
+}
+
+function getValueMissingPoint(coordSys) {
+    // It is error-prone to input [NaN, NaN] into polygon, polygon.
+    // (probably cause problem when refreshing or animating)
+    return [coordSys.cx, coordSys.cy];
+}
+
 /*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
@@ -45328,7 +45908,7 @@ function makeInvoker(methodName) {
 function mapNotExistsError(mapName) {
     if (__DEV__) {
         console.error(
-            'Map ' + mapName + ' not exists. You can download map file on http://echarts.baidu.com/download-map.html'
+            'Map ' + mapName + ' not exists. The GeoJSON of the map must be provided.'
         );
     }
 }
@@ -46233,6 +46813,7 @@ MapDraw.prototype = {
                 || nameMap.set(region.name, new Group());
 
             var compoundPath = new CompoundPath({
+                segmentIgnoreThreshold: 1,
                 shape: {
                     paths: []
                 }
@@ -46268,6 +46849,7 @@ MapDraw.prototype = {
                     return;
                 }
                 compoundPath.shape.paths.push(new Polygon({
+                    segmentIgnoreThreshold: 1,
                     shape: {
                         points: geometry.exterior
                     }
@@ -46275,6 +46857,7 @@ MapDraw.prototype = {
 
                 for (var i = 0; i < (geometry.interiors ? geometry.interiors.length : 0); i++) {
                     compoundPath.shape.paths.push(new Polygon({
+                        segmentIgnoreThreshold: 1,
                         shape: {
                             points: geometry.interiors[i]
                         }
@@ -46355,11 +46938,8 @@ MapDraw.prototype = {
             var groupRegions = regionGroup.__regions || (regionGroup.__regions = []);
             groupRegions.push(region);
 
-            setHoverStyle(
-                regionGroup,
-                hoverItemStyle,
-                {hoverSilentOnTouch: !!mapOrGeoModel.get('selectedMode')}
-            );
+            regionGroup.highDownSilentOnTouch = !!mapOrGeoModel.get('selectedMode');
+            setHoverStyle(regionGroup, hoverItemStyle);
 
             regionsGroup.add(regionGroup);
         });
@@ -48542,11 +49122,6 @@ function addChild(child, node) {
 * under the License.
 */
 
-/**
- * @file Create data struct and define tree view's series model
- * @author Deqing Li(annong035@gmail.com)
- */
-
 SeriesModel.extend({
 
     type: 'series.tree',
@@ -49056,11 +49631,6 @@ function defaultSeparation(node1, node2) {
 * under the License.
 */
 
-/**
- * @file This file used to draw tree view.
- * @author Deqing Li(annong035@gmail.com)
- */
-
 extendChartView({
 
     type: 'tree',
@@ -49547,11 +50117,6 @@ function getEdgeShape(seriesScope, sourceLayout, targetLayout) {
 * under the License.
 */
 
-/**
- * @file Register the actions of the tree
- * @author Deqing Li(annong035@gmail.com)
- */
-
 registerAction({
     type: 'treeExpandAndCollapse',
     event: 'treeExpandAndCollapse',
@@ -49893,6 +50458,8 @@ SeriesModel.extend({
 
     dependencies: ['grid', 'polar'],
 
+    preventUsingHoverLayer: true,
+
     /**
      * @type {module:echarts/data/Tree~Node}
      */
@@ -49901,7 +50468,6 @@ SeriesModel.extend({
     defaultOption: {
         // Disable progressive rendering
         progressive: 0,
-        hoverLayerThreshold: Infinity,
         // center: ['50%', '50%'],          // not supported in ec3.
         // size: ['80%', '80%'],            // deprecated, compatible with ec2.
         left: 'center',
@@ -53021,13 +53587,6 @@ registerLayout(treemapLayout);
 * under the License.
 */
 
-/**
- * Graph data structure
- *
- * @module echarts/data/Graph
- * @author Yi Shen(https://www.github.com/pissang)
- */
-
 // id may be function name of Object, add a prefix to avoid this problem.
 function generateNodeKey(id) {
     return '_EC_' + id;
@@ -53101,7 +53660,7 @@ graphProto.isDirected = function () {
  * @param {number} [dataIndex]
  */
 graphProto.addNode = function (id, dataIndex) {
-    id = id || ('' + dataIndex);
+    id = id == null ? ('' + dataIndex) : ('' + id);
 
     var nodesMap = this._nodesMap;
 
@@ -53952,22 +54511,26 @@ var LinePath = extendShape({
     },
 
     buildPath: function (ctx, shape) {
-        (isLine(shape) ? straightLineProto : bezierCurveProto).buildPath(ctx, shape);
+        this[isLine(shape) ? '_buildPathLine' : '_buildPathCurve'](ctx, shape);
     },
+    _buildPathLine: straightLineProto.buildPath,
+    _buildPathCurve: bezierCurveProto.buildPath,
 
     pointAt: function (t) {
-        return isLine(this.shape)
-            ? straightLineProto.pointAt.call(this, t)
-            : bezierCurveProto.pointAt.call(this, t);
+        return this[isLine(this.shape) ? '_pointAtLine' : '_pointAtCurve'](t);
     },
+    _pointAtLine: straightLineProto.pointAt,
+    _pointAtCurve: bezierCurveProto.pointAt,
 
     tangentAt: function (t) {
         var shape = this.shape;
         var p = isLine(shape)
             ? [shape.x2 - shape.x1, shape.y2 - shape.y1]
-            : bezierCurveProto.tangentAt.call(this, t);
+            : this._tangentAtCurve(t);
         return normalize(p, p);
-    }
+    },
+    _tangentAtCurve: bezierCurveProto.tangentAt
+
 });
 
 /*
@@ -54025,22 +54588,21 @@ function createSymbol$1(name, lineData, idx) {
 
 function createLine(points) {
     var line = new LinePath({
-        name: 'line'
+        name: 'line',
+        subPixelOptimize: true
     });
     setLinePoints(line.shape, points);
     return line;
 }
 
 function setLinePoints(targetShape, points) {
-    var p1 = points[0];
-    var p2 = points[1];
-    var cp1 = points[2];
-    targetShape.x1 = p1[0];
-    targetShape.y1 = p1[1];
-    targetShape.x2 = p2[0];
-    targetShape.y2 = p2[1];
+    targetShape.x1 = points[0][0];
+    targetShape.y1 = points[0][1];
+    targetShape.x2 = points[1][0];
+    targetShape.y2 = points[1][1];
     targetShape.percent = 1;
 
+    var cp1 = points[2];
     if (cp1) {
         targetShape.cpx1 = cp1[0];
         targetShape.cpy1 = cp1[1];
@@ -54171,7 +54733,6 @@ lineProto.beforeUpdate = updateSymbolAndLabelBeforeLineUpdate;
 lineProto._createLine = function (lineData, idx, seriesScope) {
     var seriesModel = lineData.hostModel;
     var linePoints = lineData.getItemLayout(idx);
-
     var line = createLine(linePoints);
     line.shape.percent = 0;
     initProps(line, {
@@ -54211,6 +54772,7 @@ lineProto.updateData = function (lineData, idx, seriesScope) {
     var target = {
         shape: {}
     };
+
     setLinePoints(target.shape, linePoints);
     updateProps(line, target, seriesModel, idx);
 
@@ -54296,7 +54858,7 @@ lineProto._updateCommonStl = function (lineData, idx, seriesScope) {
             baseText = rawVal == null
                 ? lineData.getName(idx)
                 : isFinite(rawVal)
-                ? round$2(rawVal)
+                ? round$1(rawVal)
                 : rawVal;
         }
     }
@@ -54562,6 +55124,50 @@ function lineNeedsDraw(pts) {
 * under the License.
 */
 
+function getNodeGlobalScale(seriesModel) {
+    var coordSys = seriesModel.coordinateSystem;
+    if (coordSys.type !== 'view') {
+        return 1;
+    }
+
+    var nodeScaleRatio = seriesModel.option.nodeScaleRatio;
+
+    var groupScale = coordSys.scale;
+    var groupZoom = (groupScale && groupScale[0]) || 1;
+    // Scale node when zoom changes
+    var roamZoom = coordSys.getZoom();
+    var nodeScale = (roamZoom - 1) * nodeScaleRatio + 1;
+
+    return nodeScale / groupZoom;
+}
+
+function getSymbolSize$1(node) {
+    var symbolSize = node.getVisual('symbolSize');
+    if (symbolSize instanceof Array) {
+        symbolSize = (symbolSize[0] + symbolSize[1]) / 2;
+    }
+    return +symbolSize;
+}
+
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+*
+*   http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
+
 var v1 = [];
 var v2 = [];
 var v3 = [];
@@ -54639,13 +55245,6 @@ var adjustEdge = function (graph, scale$$1) {
     var v = [];
     scale$$1 /= 2;
 
-    function getSymbolSize(node) {
-        var symbolSize = node.getVisual('symbolSize');
-        if (symbolSize instanceof Array) {
-            symbolSize = (symbolSize[0] + symbolSize[1]) / 2;
-        }
-        return symbolSize;
-    }
     graph.eachEdge(function (edge, idx) {
         var linePoints = edge.getLayout();
         var fromSymbol = edge.getVisual('fromSymbol');
@@ -54667,7 +55266,7 @@ var adjustEdge = function (graph, scale$$1) {
             copy(pts[1], originalPoints[2]);
             copy(pts[2], originalPoints[1]);
             if (fromSymbol && fromSymbol !== 'none') {
-                var symbolSize = getSymbolSize(edge.node1);
+                var symbolSize = getSymbolSize$1(edge.node1);
 
                 var t = intersectCurveCircle(pts, originalPoints[0], symbolSize * scale$$1);
                 // Subdivide and get the second
@@ -54679,7 +55278,7 @@ var adjustEdge = function (graph, scale$$1) {
                 pts[1][1] = tmp0[4];
             }
             if (toSymbol && toSymbol !== 'none') {
-                var symbolSize = getSymbolSize(edge.node2);
+                var symbolSize = getSymbolSize$1(edge.node2);
 
                 var t = intersectCurveCircle(pts, originalPoints[1], symbolSize * scale$$1);
                 // Subdivide and get the first
@@ -54704,12 +55303,12 @@ var adjustEdge = function (graph, scale$$1) {
             normalize(v, v);
             if (fromSymbol && fromSymbol !== 'none') {
 
-                var symbolSize = getSymbolSize(edge.node1);
+                var symbolSize = getSymbolSize$1(edge.node1);
 
                 scaleAndAdd(pts2[0], pts2[0], v, symbolSize * scale$$1);
             }
             if (toSymbol && toSymbol !== 'none') {
-                var symbolSize = getSymbolSize(edge.node2);
+                var symbolSize = getSymbolSize$1(edge.node2);
 
                 scaleAndAdd(pts2[1], pts2[1], v, -symbolSize * scale$$1);
             }
@@ -54745,13 +55344,14 @@ var nodeOpacityPath = ['itemStyle', 'opacity'];
 var lineOpacityPath = ['lineStyle', 'opacity'];
 
 function getItemOpacity(item, opacityPath) {
-    return item.getVisual('opacity') || item.getModel().get(opacityPath);
+    var opacity = item.getVisual('opacity');
+    return opacity != null ? opacity : item.getModel().get(opacityPath);
 }
 
 function fadeOutItem(item, opacityPath, opacityRatio) {
     var el = item.getGraphicEl();
-
     var opacity = getItemOpacity(item, opacityPath);
+
     if (opacityRatio != null) {
         opacity == null && (opacity = 1);
         opacity *= opacityRatio;
@@ -54759,7 +55359,7 @@ function fadeOutItem(item, opacityPath, opacityRatio) {
 
     el.downplay && el.downplay();
     el.traverse(function (child) {
-        if (child.type !== 'group') {
+        if (!child.isGroup) {
             var opct = child.lineLabelOriginalOpacity;
             if (opct == null || opacityRatio != null) {
                 opct = opacity;
@@ -54772,13 +55372,13 @@ function fadeOutItem(item, opacityPath, opacityRatio) {
 function fadeInItem(item, opacityPath) {
     var opacity = getItemOpacity(item, opacityPath);
     var el = item.getGraphicEl();
-
-    el.highlight && el.highlight();
+    // Should go back to normal opacity first, consider hoverLayer,
+    // where current state is copied to elMirror, and support
+    // emphasis opacity here.
     el.traverse(function (child) {
-        if (child.type !== 'group') {
-            child.setStyle('opacity', opacity);
-        }
+        !child.isGroup && child.setStyle('opacity', opacity);
     });
+    el.highlight && el.highlight();
 }
 
 extendChartView({
@@ -54806,7 +55406,6 @@ extendChartView({
         var coordSys = seriesModel.coordinateSystem;
 
         this._model = seriesModel;
-        this._nodeScaleRatio = seriesModel.get('nodeScaleRatio');
 
         var symbolDraw = this._symbolDraw;
         var lineDraw = this._lineDraw;
@@ -54826,7 +55425,7 @@ extendChartView({
             }
         }
         // Fix edge contact point with node
-        adjustEdge(seriesModel.getGraph(), this._getNodeGlobalScale(seriesModel));
+        adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel));
 
         var data = seriesModel.getData();
         symbolDraw.updateData(data);
@@ -54917,6 +55516,8 @@ extendChartView({
         var cx = data.getLayout('cx');
         var cy = data.getLayout('cy');
         data.eachItemGraphicEl(function (el, idx) {
+            var itemModel = data.getItemModel(idx);
+            var labelRotate = itemModel.get('label.rotate') || 0;
             var symbolPath = el.getSymbolPath();
             if (circularRotateLabel) {
                 var pos = data.getItemLayout(idx);
@@ -54929,17 +55530,25 @@ extendChartView({
                     rad = rad - Math.PI;
                 }
                 var textPosition = isLeft ? 'left' : 'right';
-                symbolPath.setStyle({
-                    textRotation: -rad,
-                    textPosition: textPosition,
-                    textOrigin: 'center'
-                });
-                symbolPath.hoverStyle && (symbolPath.hoverStyle.textPosition = textPosition);
+                modifyLabelStyle(
+                    symbolPath,
+                    {
+                        textRotation: -rad,
+                        textPosition: textPosition,
+                        textOrigin: 'center'
+                    },
+                    {
+                        textPosition: textPosition
+                    }
+                );
             }
             else {
-                symbolPath.setStyle({
-                    textRotation: 0
-                });
+                modifyLabelStyle(
+                    symbolPath,
+                    {
+                        textRotation: labelRotate *= Math.PI / 180
+                    }
+                );
             }
         });
 
@@ -55056,7 +55665,7 @@ extendChartView({
                     originY: e.originY
                 });
                 this._updateNodeAndLinkScale();
-                adjustEdge(seriesModel.getGraph(), this._getNodeGlobalScale(seriesModel));
+                adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel));
                 this._lineDraw.updateLayout();
             }, this);
     },
@@ -55065,7 +55674,7 @@ extendChartView({
         var seriesModel = this._model;
         var data = seriesModel.getData();
 
-        var nodeScale = this._getNodeGlobalScale(seriesModel);
+        var nodeScale = getNodeGlobalScale(seriesModel);
         var invScale = [nodeScale, nodeScale];
 
         data.eachItemGraphicEl(function (el, idx) {
@@ -55073,25 +55682,8 @@ extendChartView({
         });
     },
 
-    _getNodeGlobalScale: function (seriesModel) {
-        var coordSys = seriesModel.coordinateSystem;
-        if (coordSys.type !== 'view') {
-            return 1;
-        }
-
-        var nodeScaleRatio = this._nodeScaleRatio;
-
-        var groupScale = coordSys.scale;
-        var groupZoom = (groupScale && groupScale[0]) || 1;
-        // Scale node when zoom changes
-        var roamZoom = coordSys.getZoom();
-        var nodeScale = (roamZoom - 1) * nodeScaleRatio + 1;
-
-        return nodeScale / groupZoom;
-    },
-
     updateLayout: function (seriesModel) {
-        adjustEdge(seriesModel.getGraph(), this._getNodeGlobalScale(seriesModel));
+        adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel));
 
         this._symbolDraw.updateLayout();
         this._lineDraw.updateLayout();
@@ -55281,11 +55873,19 @@ var categoryVisual = function (ecModel) {
             var name = categoriesData.getName(idx);
             // Add prefix to avoid conflict with Object.prototype.
             categoryNameIdxMap['ec-' + name] = idx;
-
             var itemModel = categoriesData.getItemModel(idx);
+
             var color = itemModel.get('itemStyle.color')
                 || seriesModel.getColorFromPalette(name, paletteScope);
             categoriesData.setItemVisual(idx, 'color', color);
+
+            var itemStyleList = ['opacity', 'symbol', 'symbolSize', 'symbolKeepAspect'];
+            for (var i = 0; i < itemStyleList.length; i++) {
+                var itemStyle = itemModel.getShallow(itemStyleList[i], true);
+                if (itemStyle != null) {
+                    categoriesData.setItemVisual(idx, itemStyleList[i], itemStyle);
+                }
+            }
         });
 
         // Assign category color to visual
@@ -55297,11 +55897,16 @@ var categoryVisual = function (ecModel) {
                     if (typeof category === 'string') {
                         category = categoryNameIdxMap['ec-' + category];
                     }
-                    if (!data.getItemVisual(idx, 'color', true)) {
-                        data.setItemVisual(
-                            idx, 'color',
-                            categoriesData.getItemVisual(category, 'color')
-                        );
+
+                    var itemStyleList = ['color', 'opacity', 'symbol', 'symbolSize', 'symbolKeepAspect'];
+
+                    for (var i = 0; i < itemStyleList.length; i++) {
+                        if (data.getItemVisual(idx, itemStyleList[i], true) == null) {
+                            data.setItemVisual(
+                                idx, itemStyleList[i],
+                                categoriesData.getItemVisual(category, itemStyleList[i])
+                            );
+                        }
                     }
                 }
             });
@@ -55508,7 +56113,33 @@ var simpleLayout = function (ecModel, api) {
 * under the License.
 */
 
-function circularLayout$1(seriesModel) {
+var PI$3 = Math.PI;
+
+var _symbolRadiansHalf = [];
+
+/**
+ * `basedOn` can be:
+ * 'value':
+ *     This layout is not accurate and have same bad case. For example,
+ *     if the min value is very smaller than the max value, the nodes
+ *     with the min value probably overlap even though there is enough
+ *     space to layout them. So we only use this approach in the as the
+ *     init layout of the force layout.
+ *     FIXME
+ *     Probably we do not need this method any more but use
+ *     `basedOn: 'symbolSize'` in force layout if
+ *     delay its init operations to GraphView.
+ * 'symbolSize':
+ *     This approach work only if all of the symbol size calculated.
+ *     That is, the progressive rendering is not applied to graph.
+ *     FIXME
+ *     If progressive rendering is applied to graph some day,
+ *     probably we have to use `basedOn: 'value'`.
+ *
+ * @param {module:echarts/src/model/Series} seriesModel
+ * @param {string} basedOn 'value' or 'symbolSize'
+ */
+function circularLayout$1(seriesModel, basedOn) {
     var coordSys = seriesModel.coordinateSystem;
     if (coordSys && coordSys.type !== 'view') {
         return;
@@ -55519,33 +56150,22 @@ function circularLayout$1(seriesModel) {
     var nodeData = seriesModel.getData();
     var graph = nodeData.graph;
 
-    var angle = 0;
-    var sum = nodeData.getSum('value');
-    var unitAngle = Math.PI * 2 / (sum || nodeData.count());
-
     var cx = rect.width / 2 + rect.x;
     var cy = rect.height / 2 + rect.y;
-
     var r = Math.min(rect.width, rect.height) / 2;
-
-    graph.eachNode(function (node) {
-        var value = node.getValue('value');
-
-        angle += unitAngle * (sum ? value : 1) / 2;
-
-        node.setLayout([
-            r * Math.cos(angle) + cx,
-            r * Math.sin(angle) + cy
-        ]);
-
-        angle += unitAngle * (sum ? value : 1) / 2;
-    });
+    var count = nodeData.count();
 
     nodeData.setLayout({
         cx: cx,
         cy: cy
     });
 
+    if (!count) {
+        return;
+    }
+
+    _layoutNodesBasedOn[basedOn](seriesModel, coordSys, graph, nodeData, r, cx, cy, count);
+
     graph.eachEdge(function (edge) {
         var curveness = edge.getModel().get('lineStyle.curveness') || 0;
         var p1 = clone$1(edge.node1.getLayout());
@@ -55564,6 +56184,65 @@ function circularLayout$1(seriesModel) {
     });
 }
 
+var _layoutNodesBasedOn = {
+
+    value: function (seriesModel, coordSys, graph, nodeData, r, cx, cy, count) {
+        var angle = 0;
+        var sum = nodeData.getSum('value');
+        var unitAngle = Math.PI * 2 / (sum || count);
+
+        graph.eachNode(function (node) {
+            var value = node.getValue('value');
+            var radianHalf = unitAngle * (sum ? value : 1) / 2;
+
+            angle += radianHalf;
+            node.setLayout([
+                r * Math.cos(angle) + cx,
+                r * Math.sin(angle) + cy
+            ]);
+            angle += radianHalf;
+        });
+    },
+
+    symbolSize: function (seriesModel, coordSys, graph, nodeData, r, cx, cy, count) {
+        var sumRadian = 0;
+        _symbolRadiansHalf.length = count;
+
+        var nodeScale = getNodeGlobalScale(seriesModel);
+
+        graph.eachNode(function (node) {
+            var symbolSize = getSymbolSize$1(node);
+
+            // Normally this case will not happen, but we still add
+            // some the defensive code (2px is an arbitrary value).
+            isNaN(symbolSize) && (symbolSize = 2);
+            symbolSize < 0 && (symbolSize = 0);
+
+            symbolSize *= nodeScale;
+
+            var symbolRadianHalf = Math.asin(symbolSize / 2 / r);
+            // when `symbolSize / 2` is bigger than `r`.
+            isNaN(symbolRadianHalf) && (symbolRadianHalf = PI$3 / 2);
+            _symbolRadiansHalf[node.dataIndex] = symbolRadianHalf;
+            sumRadian += symbolRadianHalf * 2;
+        });
+
+        var halfRemainRadian = (2 * PI$3 - sumRadian) / count / 2;
+
+        var angle = 0;
+        graph.eachNode(function (node) {
+            var radianHalf = halfRemainRadian + _symbolRadiansHalf[node.dataIndex];
+
+            angle += radianHalf;
+            node.setLayout([
+                r * Math.cos(angle) + cx,
+                r * Math.sin(angle) + cy
+            ]);
+            angle += radianHalf;
+        });
+    }
+};
+
 /*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
@@ -55586,7 +56265,7 @@ function circularLayout$1(seriesModel) {
 var circularLayout = function (ecModel) {
     ecModel.eachSeriesByType('graph', function (seriesModel) {
         if (seriesModel.get('layout') === 'circular') {
-            circularLayout$1(seriesModel);
+            circularLayout$1(seriesModel, 'symbolSize');
         }
     });
 };
@@ -55791,7 +56470,7 @@ var forceLayout = function (ecModel) {
                 simpleLayout$1(graphSeries);
             }
             else if (initLayout === 'circular') {
-                circularLayout$1(graphSeries);
+                circularLayout$1(graphSeries, 'value');
             }
 
             var nodeDataExtent = nodeData.getDataExtent('value');
@@ -56010,7 +56689,7 @@ registerVisual(categoryVisual);
 registerVisual(edgeVisual);
 
 registerLayout(simpleLayout);
-registerLayout(circularLayout);
+registerLayout(PRIORITY.VISUAL.POST_CHART_LAYOUT, circularLayout);
 registerLayout(forceLayout);
 
 // Graph view coordinate system
@@ -56289,8 +56968,9 @@ var GaugeView = Chart.extend({
 
         var prevEndAngle = startAngle;
         var axisLineWidth = lineStyleModel.get('width');
-
-        for (var i = 0; i < colorList.length; i++) {
+        var showAxis = axisLineModel.get('show');
+        
+        for (var i = 0; showAxis && i < colorList.length; i++) {
             // Clamp
             var percent = Math.min(Math.max(colorList[i][0], 0), 1);
             var endAngle = startAngle + angleRangeSpan * percent;
@@ -56422,7 +57102,7 @@ var GaugeView = Chart.extend({
             // Label
             if (labelModel.get('show')) {
                 var label = formatLabel(
-                    round$2(i / splitNumber * (maxVal - minVal) + minVal),
+                    round$1(i / splitNumber * (maxVal - minVal) + minVal),
                     labelModel.get('formatter')
                 );
                 var distance = labelModel.get('distance');
@@ -56793,21 +57473,18 @@ function FunnelPiece(data, idx) {
     this.add(labelLine);
     this.add(text);
 
-    this.updateData(data, idx, true);
+    this.highDownOnUpdate = function (fromState, toState) {
+        if (toState === 'emphasis') {
+            labelLine.ignore = labelLine.hoverIgnore;
+            text.ignore = text.hoverIgnore;
+        }
+        else {
+            labelLine.ignore = labelLine.normalIgnore;
+            text.ignore = text.normalIgnore;
+        }
+    };
 
-    // Hover to change label and labelLine
-    function onEmphasis() {
-        labelLine.ignore = labelLine.hoverIgnore;
-        text.ignore = text.hoverIgnore;
-    }
-    function onNormal() {
-        labelLine.ignore = labelLine.normalIgnore;
-        text.ignore = text.normalIgnore;
-    }
-    this.on('emphasis', onEmphasis)
-        .on('normal', onNormal)
-        .on('mouseover', onEmphasis)
-        .on('mouseout', onNormal);
+    this.updateData(data, idx, true);
 }
 
 var funnelPieceProto = FunnelPiece.prototype;
@@ -57042,7 +57719,8 @@ function labelLayout$1(data) {
         var points = layout.points;
 
         var isLabelInside = labelPosition === 'inner'
-            || labelPosition === 'inside' || labelPosition === 'center';
+            || labelPosition === 'inside' || labelPosition === 'center'
+            || labelPosition === 'insideLeft' || labelPosition === 'insideRight';
 
         var textAlign;
         var textX;
@@ -57050,9 +57728,21 @@ function labelLayout$1(data) {
         var linePoints;
 
         if (isLabelInside) {
-            textX = (points[0][0] + points[1][0] + points[2][0] + points[3][0]) / 4;
-            textY = (points[0][1] + points[1][1] + points[2][1] + points[3][1]) / 4;
-            textAlign = 'center';
+            if (labelPosition === 'insideLeft') {
+                textX = (points[0][0] + points[3][0]) / 2 + 5;
+                textY = (points[0][1] + points[3][1]) / 2;
+                textAlign = 'left';
+            }
+            else if (labelPosition === 'insideRight') {
+                textX = (points[1][0] + points[2][0]) / 2 - 5;
+                textY = (points[1][1] + points[2][1]) / 2;
+                textAlign = 'right';
+            }
+            else {
+                textX = (points[0][0] + points[1][0] + points[2][0] + points[3][0]) / 4;
+                textY = (points[0][1] + points[1][1] + points[2][1] + points[3][1]) / 4;
+                textAlign = 'center';
+            }
             linePoints = [
                 [textX, textY], [textX, textY]
             ];
@@ -57069,7 +57759,47 @@ function labelLayout$1(data) {
                 x2 = x1 - labelLineLen;
                 textX = x2 - 5;
                 textAlign = 'right';
-            }
+            } 
+            else if (labelPosition === 'right') {
+                // Right side
+                x1 = (points[1][0] + points[2][0]) / 2;
+                y1 = (points[1][1] + points[2][1]) / 2;
+                x2 = x1 + labelLineLen;
+                textX = x2 + 5;
+                textAlign = 'left';
+            } 
+            else if (labelPosition === 'rightTop') {
+                // RightTop side
+                x1 = points[1][0];
+                y1 = points[1][1];
+                x2 = x1 + labelLineLen;
+                textX = x2 + 5;
+                textAlign = 'top';
+            } 
+            else if (labelPosition === 'rightBottom') {
+                // RightBottom side
+                x1 = points[2][0];
+                y1 = points[2][1];
+                x2 = x1 + labelLineLen;
+                textX = x2 + 5;
+                textAlign = 'bottom';
+            } 
+            else if (labelPosition === 'leftTop') {
+                // LeftTop side
+                x1 = points[0][0];
+                y1 = points[1][1];
+                x2 = x1 - labelLineLen;
+                textX = x2 - 5;
+                textAlign = 'right';
+            } 
+            else if (labelPosition === 'leftBottom') {
+                // LeftBottom side
+                x1 = points[3][0];
+                y1 = points[2][1];
+                x2 = x1 - labelLineLen;
+                textX = x2 - 5;
+                textAlign = 'right';
+            } 
             else {
                 // Right side
                 x1 = (points[1][0] + points[2][0]) / 2;
@@ -57373,8 +58103,7 @@ inherits(ParallelAxis, Axis);
  *              handleEnds will be modified in this method.
  * @param {Array.<number>} extent handleEnds is restricted by extent.
  *              extent[0] should less or equals than extent[1].
- * @param {number|string} handleIndex Can be 'all', means that both move the two handleEnds,
- *              where the input minSpan and maxSpan will not work.
+ * @param {number|string} handleIndex Can be 'all', means that both move the two handleEnds.
  * @param {number} [minSpan] The range of dataZoom can not be smaller than that.
  *              If not set, handle0 and cross handle1. If set as a non-negative
  *              number (including `0`), handles will push each other when reaching
@@ -57383,9 +58112,6 @@ inherits(ParallelAxis, Axis);
  * @return {Array.<number>} The input handleEnds.
  */
 var sliderMove = function (delta, handleEnds, extent, handleIndex, minSpan, maxSpan) {
-    // Normalize firstly.
-    handleEnds[0] = restrict$1(handleEnds[0], extent);
-    handleEnds[1] = restrict$1(handleEnds[1], extent);
 
     delta = delta || 0;
 
@@ -57399,10 +58125,15 @@ var sliderMove = function (delta, handleEnds, extent, handleIndex, minSpan, maxS
         maxSpan = Math.max(maxSpan, minSpan != null ? minSpan : 0);
     }
     if (handleIndex === 'all') {
-        minSpan = maxSpan = Math.abs(handleEnds[1] - handleEnds[0]);
+        var handleSpan = Math.abs(handleEnds[1] - handleEnds[0]);
+        handleSpan = restrict$1(handleSpan, [0, extentSpan]);
+        minSpan = maxSpan = restrict$1(handleSpan, [minSpan, maxSpan]);
         handleIndex = 0;
     }
 
+    handleEnds[0] = restrict$1(handleEnds[0], extent);
+    handleEnds[1] = restrict$1(handleEnds[1], extent);
+
     var originalDistSign = getSpanSign(handleEnds, handleIndex);
 
     handleEnds[handleIndex] += delta;
@@ -57418,7 +58149,7 @@ var sliderMove = function (delta, handleEnds, extent, handleIndex, minSpan, maxS
     if (minSpan != null && (
         currDistSign.sign !== originalDistSign.sign || currDistSign.span < minSpan
     )) {
-        // If minSpan exists, 'cross' is forbinden.
+        // If minSpan exists, 'cross' is forbidden.
         handleEnds[1 - handleIndex] = handleEnds[handleIndex] + originalDistSign.sign * minSpan;
     }
 
@@ -57439,7 +58170,10 @@ function getSpanSign(handleEnds, handleIndex) {
 }
 
 function restrict$1(value, extend) {
-    return Math.min(extend[1], Math.max(extend[0], value));
+    return Math.min(
+        extend[1] != null ? extend[1] : Infinity,
+        Math.max(extend[0] != null ? extend[0] : -Infinity, value)
+    );
 }
 
 /*
@@ -57471,9 +58205,9 @@ var mathMin$5 = Math.min;
 var mathMax$5 = Math.max;
 var mathFloor$2 = Math.floor;
 var mathCeil$2 = Math.ceil;
-var round$3 = round$2;
+var round$2 = round$1;
 
-var PI$3 = Math.PI;
+var PI$4 = Math.PI;
 
 function Parallel(parallelModel, ecModel, api) {
 
@@ -57672,8 +58406,8 @@ Parallel.prototype = {
 
         // Find the first and last indices > ewin[0] and < ewin[1].
         var winInnerIndices = [
-            mathFloor$2(round$3(axisExpandWindow[0] / axisExpandWidth, 1)) + 1,
-            mathCeil$2(round$3(axisExpandWindow[1] / axisExpandWidth, 1)) - 1
+            mathFloor$2(round$2(axisExpandWindow[0] / axisExpandWidth, 1)) + 1,
+            mathCeil$2(round$2(axisExpandWindow[1] / axisExpandWidth, 1)) - 1
         ];
 
         // Pos in ec coordinates.
@@ -57728,7 +58462,7 @@ Parallel.prototype = {
                 }
             };
             var rotationTable = {
-                horizontal: PI$3 / 2,
+                horizontal: PI$4 / 2,
                 vertical: 0
             };
 
@@ -60239,30 +60973,62 @@ registerVisual(parallelVisual);
 * under the License.
 */
 
-/**
- * @file Get initial data and define sankey view's series model
- * @author Deqing Li(annong035@gmail.com)
- */
-
 var SankeySeries = SeriesModel.extend({
 
     type: 'series.sankey',
 
     layoutInfo: null,
 
+    levelModels: null,
+
     /**
      * Init a graph data structure from data in option series
      *
      * @param  {Object} option  the object used to config echarts view
      * @return {module:echarts/data/List} storage initial data
      */
-    getInitialData: function (option) {
+    getInitialData: function (option, ecModel) {
         var links = option.edges || option.links;
         var nodes = option.data || option.nodes;
+        var levels = option.levels;
+        var levelModels = this.levelModels = {};
+
+        for (var i = 0; i < levels.length; i++) {
+            if (levels[i].depth != null && levels[i].depth >= 0) {
+                levelModels[levels[i].depth] = new Model(levels[i], this, ecModel);
+            }
+            else {
+                if (__DEV__) {
+                    throw new Error('levels[i].depth is mandatory and should be natural number');
+                }
+            }
+        }
         if (nodes && links) {
-            var graph = createGraphFromNodeEdge(nodes, links, this, true);
+            var graph = createGraphFromNodeEdge(nodes, links, this, true, beforeLink);
             return graph.data;
         }
+        function beforeLink(nodeData, edgeData) {
+            nodeData.wrapMethod('getItemModel', function (model, idx) {
+                model.customizeGetParent(function (path) {
+                    var parentModel = this.parentModel;
+                    var nodeDepth = parentModel.getData().getItemLayout(idx).depth;
+                    var levelModel = parentModel.levelModels[nodeDepth];
+                    return levelModel || this.parentModel;
+                });
+                return model;
+            });
+
+            edgeData.wrapMethod('getItemModel', function (model, idx) {
+                model.customizeGetParent(function (path) {
+                    var parentModel = this.parentModel;
+                    var edge = parentModel.getGraph().getEdgeByIndex(idx);
+                    var depth = edge.node1.getLayout().depth;
+                    var levelModel = parentModel.levelModels[depth];
+                    return levelModel || this.parentModel;
+                });
+                return model;
+            });
+        }
     },
 
     setNodePosition: function (dataIndex, localPosition) {
@@ -60303,7 +61069,15 @@ var SankeySeries = SeriesModel.extend({
             }
             return encodeHTML(html);
         }
-
+        else if (dataType === 'node') {
+            var node = this.getGraph().getNodeByIndex(dataIndex);
+            var value = node.getLayout().value;
+            var name = this.getDataParams(dataIndex, dataType).data.name;
+            if (value) {
+                var html = name + ' : ' + value;
+            }
+            return encodeHTML(html);
+        }
         return SankeySeries.superCall(this, 'formatTooltip', dataIndex, multipleSeries);
     },
 
@@ -60353,6 +61127,11 @@ var SankeySeries = SeriesModel.extend({
             fontSize: 12
         },
 
+        levels: [],
+
+        // Value can be 'left' or 'right'
+        nodeAlign: 'justify',
+
         itemStyle: {
             borderWidth: 1,
             borderColor: '#333'
@@ -60399,11 +61178,6 @@ var SankeySeries = SeriesModel.extend({
 * under the License.
 */
 
-/**
- * @file  The file used to draw sankey view
- * @author  Deqing Li(annong035@gmail.com)
- */
-
 var nodeOpacityPath$1 = ['itemStyle', 'opacity'];
 var lineOpacityPath$1 = ['lineStyle', 'opacity'];
 
@@ -60452,14 +61226,13 @@ var SankeyShape = extendShape({
 
     buildPath: function (ctx, shape) {
         var extent = shape.extent;
-        var orient = shape.orient;
-        if (orient === 'vertical') {
-            ctx.moveTo(shape.x1, shape.y1);
-            ctx.bezierCurveTo(
-                shape.cpx1, shape.cpy1,
-                shape.cpx2, shape.cpy2,
-                shape.x2, shape.y2
-            );
+        ctx.moveTo(shape.x1, shape.y1);
+        ctx.bezierCurveTo(
+            shape.cpx1, shape.cpy1,
+            shape.cpx2, shape.cpy2,
+            shape.x2, shape.y2
+        );
+        if (shape.orient === 'vertical') {
             ctx.lineTo(shape.x2 + extent, shape.y2);
             ctx.bezierCurveTo(
                 shape.cpx2 + extent, shape.cpy2,
@@ -60468,12 +61241,6 @@ var SankeyShape = extendShape({
             );
         }
         else {
-            ctx.moveTo(shape.x1, shape.y1);
-            ctx.bezierCurveTo(
-                shape.cpx1, shape.cpy1,
-                shape.cpx2, shape.cpy2,
-                shape.x2, shape.y2
-            );
             ctx.lineTo(shape.x2, shape.y2 + extent);
             ctx.bezierCurveTo(
                 shape.cpx2, shape.cpy2 + extent,
@@ -60829,11 +61596,6 @@ function createGridClipShape$2(rect, seriesModel, cb) {
 * under the License.
 */
 
-/**
- * @file The interactive action of sankey view
- * @author Deqing Li(annong035@gmail.com)
- */
-
 registerAction({
     type: 'dragNode',
     event: 'dragNode',
@@ -60864,11 +61626,6 @@ registerAction({
 * under the License.
 */
 
-/**
- * @file The layout algorithm of sankey view
- * @author Deqing Li(annong035@gmail.com)
- */
-
 var sankeyLayout = function (ecModel, api, payload) {
 
     ecModel.eachSeriesByType('sankey', function (seriesModel) {
@@ -60894,12 +61651,13 @@ var sankeyLayout = function (ecModel, api, payload) {
             return node.getLayout().value === 0;
         });
 
-        var iterations = filteredNodes.length !== 0
-            ? 0 : seriesModel.get('layoutIterations');
+        var iterations = filteredNodes.length !== 0 ? 0 : seriesModel.get('layoutIterations');
 
         var orient = seriesModel.get('orient');
 
-        layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations, orient);
+        var nodeAlign = seriesModel.get('nodeAlign');
+
+        layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations, orient, nodeAlign);
     });
 };
 
@@ -60919,8 +61677,8 @@ function getViewRect$3(seriesModel, api) {
     );
 }
 
-function layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations, orient) {
-    computeNodeBreadths(nodes, edges, nodeWidth, width, height, orient);
+function layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations, orient, nodeAlign) {
+    computeNodeBreadths(nodes, edges, nodeWidth, width, height, orient, nodeAlign);
     computeNodeDepths(nodes, edges, height, width, nodeGap, iterations, orient);
     computeEdgeDepths(nodes, orient);
 }
@@ -60949,95 +61707,125 @@ function computeNodeValues(nodes) {
  * @param  {number} nodeWidth  the dx of the node
  * @param  {number} width  the whole width of the area to draw the view
  */
-function computeNodeBreadths(nodes, edges, nodeWidth, width, height, orient) {
+function computeNodeBreadths(nodes, edges, nodeWidth, width, height, orient, nodeAlign) {
     // Used to mark whether the edge is deleted. if it is deleted,
     // the value is 0, otherwise it is 1.
     var remainEdges = [];
-
     // Storage each node's indegree.
     var indegreeArr = [];
-
     //Used to storage the node with indegree is equal to 0.
     var zeroIndegrees = [];
-
-    var nextNode = [];
+    var nextTargetNode = [];
     var x = 0;
     var kx = 0;
 
     for (var i = 0; i < edges.length; i++) {
         remainEdges[i] = 1;
     }
-
     for (i = 0; i < nodes.length; i++) {
         indegreeArr[i] = nodes[i].inEdges.length;
         if (indegreeArr[i] === 0) {
             zeroIndegrees.push(nodes[i]);
         }
     }
-
+    var maxNodeDepth = -1;
+    // Traversing nodes using topological sorting to calculate the
+    // horizontal(if orient === 'horizontal') or vertical(if orient === 'vertical')
+    // position of the nodes.
     while (zeroIndegrees.length) {
         for (var idx = 0; idx < zeroIndegrees.length; idx++) {
             var node = zeroIndegrees[idx];
-            if (orient === 'vertical') {
-                node.setLayout({y: x}, true);
-                node.setLayout({dy: nodeWidth}, true);
-            }
-            else {
-                node.setLayout({x: x}, true);
-                node.setLayout({dx: nodeWidth}, true);
-            }
-            for (var oidx = 0; oidx < node.outEdges.length; oidx++) {
-                var edge = node.outEdges[oidx];
+            var item = node.hostGraph.data.getRawDataItem(node.dataIndex);
+            var isItemDepth = item.depth != null && item.depth >= 0;
+            if (isItemDepth && item.depth > maxNodeDepth) {
+                maxNodeDepth = item.depth;
+            }
+            node.setLayout({depth: isItemDepth ? item.depth : x}, true);
+            orient === 'vertical'
+                ? node.setLayout({dy: nodeWidth}, true)
+                : node.setLayout({dx: nodeWidth}, true);
+
+            for (var edgeIdx = 0; edgeIdx < node.outEdges.length; edgeIdx++) {
+                var edge = node.outEdges[edgeIdx];
                 var indexEdge = edges.indexOf(edge);
                 remainEdges[indexEdge] = 0;
                 var targetNode = edge.node2;
                 var nodeIndex = nodes.indexOf(targetNode);
-                if (--indegreeArr[nodeIndex] === 0) {
-                    nextNode.push(targetNode);
+                if (--indegreeArr[nodeIndex] === 0 && nextTargetNode.indexOf(targetNode) < 0) {
+                    nextTargetNode.push(targetNode);
                 }
             }
         }
         ++x;
-        zeroIndegrees = nextNode;
-        nextNode = [];
+        zeroIndegrees = nextTargetNode;
+        nextTargetNode = [];
     }
 
     for (i = 0; i < remainEdges.length; i++) {
-        if (__DEV__) {
-            if (remainEdges[i] === 1) {
-                throw new Error('Sankey is a DAG, the original data has cycle!');
-            }
+        if (remainEdges[i] === 1) {
+            throw new Error('Sankey is a DAG, the original data has cycle!');
         }
     }
 
-    moveSinksRight(nodes, x, orient);
+    var maxDepth = maxNodeDepth > x - 1 ? maxNodeDepth : x - 1;
+    if (nodeAlign && nodeAlign !== 'left') {
+        adjustNodeWithNodeAlign(nodes, nodeAlign, orient, maxDepth);
+    }
+    var kx = orient === 'vertical'
+                ? (height - nodeWidth) / maxDepth
+                : (width - nodeWidth) / maxDepth;
+
+    scaleNodeBreadths(nodes, kx, orient);
+}
 
-    if (orient === 'vertical') {
-        kx = (height - nodeWidth) / (x - 1);
+function isNodeDepth(node) {
+    var item = node.hostGraph.data.getRawDataItem(node.dataIndex);
+    return item.depth != null && item.depth >= 0;
+}
+
+function adjustNodeWithNodeAlign(nodes, nodeAlign, orient, maxDepth) {
+    if (nodeAlign === 'right') {
+        var nextSourceNode = [];
+        var remainNodes = nodes;
+        var nodeHeight = 0;
+        while (remainNodes.length) {
+            for (var i = 0; i < remainNodes.length; i++) {
+                var node = remainNodes[i];
+                node.setLayout({skNodeHeight: nodeHeight}, true);
+                for (var j = 0; j < node.inEdges.length; j++) {
+                    var edge = node.inEdges[j];
+                    if (nextSourceNode.indexOf(edge.node1) < 0) {
+                        nextSourceNode.push(edge.node1);
+                    }
+                }
+            }
+            remainNodes = nextSourceNode;
+            nextSourceNode = [];
+            ++nodeHeight;
+        }
+
+        each$1(nodes, function (node) {
+            if (!isNodeDepth(node)) {
+                node.setLayout({depth: Math.max(0, maxDepth - node.getLayout().skNodeHeight)}, true);
+            }
+        });
     }
-    else {
-        kx = (width - nodeWidth) / (x - 1);
+    else if (nodeAlign === 'justify') {
+        moveSinksRight(nodes, maxDepth);
     }
-    scaleNodeBreadths(nodes, kx, orient);
 }
 
 /**
  * All the node without outEgdes are assigned maximum x-position and
  *     be aligned in the last column.
  *
- * @param {module:echarts/data/Graph~Node} nodes  node of sankey view
- * @param {number} x  value (x-1) use to assign to node without outEdges
- *     as x-position
+ * @param {module:echarts/data/Graph~Node} nodes.  node of sankey view.
+ * @param {number} maxDepth.  use to assign to node without outEdges as x-position.
  */
-function moveSinksRight(nodes, x, orient) {
+function moveSinksRight(nodes, maxDepth) {
     each$1(nodes, function (node) {
-        if (!node.outEdges.length) {
-            if (orient === 'vertical') {
-                node.setLayout({y: x - 1}, true);
-            }
-            else {
-                node.setLayout({x: x - 1}, true);
-            }
+        if (!isNodeDepth(node) && !node.outEdges.length) {
+            node.setLayout({depth: maxDepth}, true);
         }
     });
 }
@@ -61050,14 +61838,10 @@ function moveSinksRight(nodes, x, orient) {
  */
 function scaleNodeBreadths(nodes, kx, orient) {
     each$1(nodes, function (node) {
-        if (orient === 'vertical') {
-            var nodeY = node.getLayout().y * kx;
-            node.setLayout({y: nodeY}, true);
-        }
-        else {
-            var nodeX = node.getLayout().x * kx;
-            node.setLayout({x: nodeX}, true);
-        }
+        var nodeDepth = node.getLayout().depth * kx;
+        orient === 'vertical'
+            ? node.setLayout({y: nodeDepth}, true)
+            : node.setLayout({x: nodeDepth}, true);
     });
 }
 
@@ -61074,7 +61858,7 @@ function scaleNodeBreadths(nodes, kx, orient) {
 function computeNodeDepths(nodes, edges, height, width, nodeGap, iterations, orient) {
     var nodesByBreadth = prepareNodesByBreadth(nodes, orient);
 
-    initializeNodeDepth(nodes, nodesByBreadth, edges, height, width, nodeGap, orient);
+    initializeNodeDepth(nodesByBreadth, edges, height, width, nodeGap, orient);
     resolveCollisions(nodesByBreadth, nodeGap, height, width, orient);
 
     for (var alpha = 1; iterations > 0; iterations--) {
@@ -61115,32 +61899,26 @@ function prepareNodesByBreadth(nodes, orient) {
  * @param {number} height  the whole height of the area to draw the view
  * @param {number} nodeGap  the vertical distance between two nodes
  */
-function initializeNodeDepth(nodes, nodesByBreadth, edges, height, width, nodeGap, orient) {
-    var kyArray = [];
+function initializeNodeDepth(nodesByBreadth, edges, height, width, nodeGap, orient) {
+    var minKy = Infinity;
     each$1(nodesByBreadth, function (nodes) {
         var n = nodes.length;
         var sum = 0;
-        var ky = 0;
         each$1(nodes, function (node) {
             sum += node.getLayout().value;
         });
-        if (orient === 'vertical') {
-            ky = (width - (n - 1) * nodeGap) / sum;
-        }
-        else {
-            ky = (height - (n - 1) * nodeGap) / sum;
-        }
-        kyArray.push(ky);
-    });
+        var ky = orient === 'vertical'
+                    ? (width - (n - 1) * nodeGap) / sum
+                    : (height - (n - 1) * nodeGap) / sum;
 
-    kyArray.sort(function (a, b) {
-        return a - b;
+        if (ky < minKy) {
+            minKy = ky;
+        }
     });
-    var ky0 = kyArray[0];
 
     each$1(nodesByBreadth, function (nodes) {
         each$1(nodes, function (node, i) {
-            var nodeDy = node.getLayout().value * ky0;
+            var nodeDy = node.getLayout().value * minKy;
             if (orient === 'vertical') {
                 node.setLayout({x: i}, true);
                 node.setLayout({dx: nodeDy}, true);
@@ -61149,12 +61927,11 @@ function initializeNodeDepth(nodes, nodesByBreadth, edges, height, width, nodeGa
                 node.setLayout({y: i}, true);
                 node.setLayout({dy: nodeDy}, true);
             }
-
         });
     });
 
     each$1(edges, function (edge) {
-        var edgeDy = +edge.getValue() * ky0;
+        var edgeDy = +edge.getValue() * minKy;
         edge.setLayout({dy: edgeDy}, true);
     });
 }
@@ -61168,73 +61945,48 @@ function initializeNodeDepth(nodes, nodesByBreadth, edges, height, width, nodeGa
  * @param {number} height  the whole height of the area to draw the view
  */
 function resolveCollisions(nodesByBreadth, nodeGap, height, width, orient) {
+    var keyAttr = orient === 'vertical' ? 'x' : 'y';
     each$1(nodesByBreadth, function (nodes) {
+        nodes.sort(function (a, b) {
+            return a.getLayout()[keyAttr] - b.getLayout()[keyAttr];
+        });
+        var nodeX;
         var node;
         var dy;
         var y0 = 0;
         var n = nodes.length;
-        var i;
-
-        if (orient === 'vertical') {
-            var nodeX;
-            nodes.sort(function (a, b) {
-                return a.getLayout().x - b.getLayout().x;
-            });
-            for (i = 0; i < n; i++) {
-                node = nodes[i];
-                dy = y0 - node.getLayout().x;
-                if (dy > 0) {
-                    nodeX = node.getLayout().x + dy;
-                    node.setLayout({x: nodeX}, true);
-                }
-                y0 = node.getLayout().x + node.getLayout().dx + nodeGap;
-            }
-            // If the bottommost node goes outside the bounds, push it back up
-            dy = y0 - nodeGap - width;
+        var nodeDyAttr = orient === 'vertical' ? 'dx' : 'dy';
+        for (var i = 0; i < n; i++) {
+            node = nodes[i];
+            dy = y0 - node.getLayout()[keyAttr];
             if (dy > 0) {
-                nodeX = node.getLayout().x - dy;
-                node.setLayout({x: nodeX}, true);
-                y0 = nodeX;
-                for (i = n - 2; i >= 0; --i) {
-                    node = nodes[i];
-                    dy = node.getLayout().x + node.getLayout().dx + nodeGap - y0;
-                    if (dy > 0) {
-                        nodeX = node.getLayout().x - dy;
-                        node.setLayout({x: nodeX}, true);
-                    }
-                    y0 = node.getLayout().x;
-                }
-            }
-        }
-        else {
-            var nodeY;
-            nodes.sort(function (a, b) {
-                return a.getLayout().y - b.getLayout().y;
-            });
-            for (i = 0; i < n; i++) {
+                nodeX = node.getLayout()[keyAttr] + dy;
+                orient === 'vertical'
+                    ? node.setLayout({x: nodeX}, true)
+                    : node.setLayout({y: nodeX}, true);
+            }
+            y0 = node.getLayout()[keyAttr] + node.getLayout()[nodeDyAttr] + nodeGap;
+        }
+        var viewWidth = orient === 'vertical' ? width : height;
+        // If the bottommost node goes outside the bounds, push it back up
+        dy = y0 - nodeGap - viewWidth;
+        if (dy > 0) {
+            nodeX = node.getLayout()[keyAttr] - dy;
+            orient === 'vertical'
+                ? node.setLayout({x: nodeX}, true)
+                : node.setLayout({y: nodeX}, true);
+
+            y0 = nodeX;
+            for (i = n - 2; i >= 0; --i) {
                 node = nodes[i];
-                dy = y0 - node.getLayout().y;
+                dy = node.getLayout()[keyAttr] + node.getLayout()[nodeDyAttr] + nodeGap - y0;
                 if (dy > 0) {
-                    nodeY = node.getLayout().y + dy;
-                    node.setLayout({y: nodeY}, true);
-                }
-                y0 = node.getLayout().y + node.getLayout().dy + nodeGap;
-            }
-            // If the bottommost node goes outside the bounds, push it back up
-            dy = y0 - nodeGap - height;
-            if (dy > 0) {
-                nodeY = node.getLayout().y - dy;
-                node.setLayout({y: nodeY}, true);
-                y0 = nodeY;
-                for (i = n - 2; i >= 0; --i) {
-                    node = nodes[i];
-                    dy = node.getLayout().y + node.getLayout().dy + nodeGap - y0;
-                    if (dy > 0) {
-                        nodeY = node.getLayout().y - dy;
-                        node.setLayout({y: nodeY}, true);
-                    }
-                    y0 = node.getLayout().y;
+                    nodeX = node.getLayout()[keyAttr] - dy;
+                    orient === 'vertical'
+                        ? node.setLayout({x: nodeX}, true)
+                        : node.setLayout({y: nodeX}, true);
                 }
+                y0 = node.getLayout()[keyAttr];
             }
         }
     });
@@ -61251,7 +62003,8 @@ function relaxRightToLeft(nodesByBreadth, alpha, orient) {
     each$1(nodesByBreadth.slice().reverse(), function (nodes) {
         each$1(nodes, function (node) {
             if (node.outEdges.length) {
-                var y = sum(node.outEdges, weightedTarget, orient) / sum(node.outEdges, getEdgeValue, orient);
+                var y = sum(node.outEdges, weightedTarget, orient)
+                        / sum(node.outEdges, getEdgeValue, orient);
                 if (orient === 'vertical') {
                     var nodeX = node.getLayout().x + (y - center$1(node, orient)) * alpha;
                     node.setLayout({x: nodeX}, true);
@@ -61274,10 +62027,9 @@ function weightedSource(edge, orient) {
 }
 
 function center$1(node, orient) {
-    if (orient === 'vertical') {
-        return node.getLayout().x + node.getLayout().dx / 2;
-    }
-    return node.getLayout().y + node.getLayout().dy / 2;
+    return orient === 'vertical'
+            ? node.getLayout().x + node.getLayout().dx / 2
+            : node.getLayout().y + node.getLayout().dy / 2;
 }
 
 function getEdgeValue(edge) {
@@ -61308,7 +62060,8 @@ function relaxLeftToRight(nodesByBreadth, alpha, orient) {
     each$1(nodesByBreadth, function (nodes) {
         each$1(nodes, function (node) {
             if (node.inEdges.length) {
-                var y = sum(node.inEdges, weightedSource, orient) / sum(node.inEdges, getEdgeValue, orient);
+                var y = sum(node.inEdges, weightedSource, orient)
+                        / sum(node.inEdges, getEdgeValue, orient);
                 if (orient === 'vertical') {
                     var nodeX = node.getLayout().x + (y - center$1(node, orient)) * alpha;
                     node.setLayout({x: nodeX}, true);
@@ -61328,23 +62081,14 @@ function relaxLeftToRight(nodesByBreadth, alpha, orient) {
  * @param {module:echarts/data/Graph~Node} nodes  node of sankey view
  */
 function computeEdgeDepths(nodes, orient) {
+    var keyAttr = orient === 'vertical' ? 'x' : 'y';
     each$1(nodes, function (node) {
-        if (orient === 'vertical') {
-            node.outEdges.sort(function (a, b) {
-                return a.node2.getLayout().x - b.node2.getLayout().x;
-            });
-            node.inEdges.sort(function (a, b) {
-                return a.node1.getLayout().x - b.node1.getLayout().x;
-            });
-        }
-        else {
-            node.outEdges.sort(function (a, b) {
-                return a.node2.getLayout().y - b.node2.getLayout().y;
-            });
-            node.inEdges.sort(function (a, b) {
-                return a.node1.getLayout().y - b.node1.getLayout().y;
-            });
-        }
+        node.outEdges.sort(function (a, b) {
+            return a.node2.getLayout()[keyAttr] - b.node2.getLayout()[keyAttr];
+        });
+        node.inEdges.sort(function (a, b) {
+            return a.node1.getLayout()[keyAttr] - b.node1.getLayout()[keyAttr];
+        });
     });
     each$1(nodes, function (node) {
         var sy = 0;
@@ -61379,11 +62123,6 @@ function computeEdgeDepths(nodes, orient) {
 * under the License.
 */
 
-/**
- * @file Visual encoding for sankey view
- * @author  Deqing Li(annong035@gmail.com)
- */
-
 var sankeyVisual = function (ecModel, payload) {
     ecModel.eachSeriesByType('sankey', function (seriesModel) {
         var graph = seriesModel.getGraph();
@@ -61410,13 +62149,10 @@ var sankeyVisual = function (ecModel, payload) {
                 });
 
                 var mapValueToColor = mapping.mapValueToVisual(node.getLayout().value);
-                node.setVisual('color', mapValueToColor);
-                // If set itemStyle.normal.color
-                var itemModel = node.getModel();
-                var customColor = itemModel.get('itemStyle.color');
-                if (customColor != null) {
-                    node.setVisual('color', customColor);
-                }
+                var customColor = node.getModel().get('itemStyle.color');
+                customColor != null
+                    ? node.setVisual('color', customColor)
+                    : node.setVisual('color', mapValueToColor);
             });
         }
     });
@@ -64676,14 +65412,6 @@ SeriesModel.extend({
 
 /* global Uint8ClampedArray */
 
-/**
- * @file defines echarts Heatmap Chart
- * @author Ovilia (me@zhangwenli.com)
- * Inspired by https://github.com/mourner/simpleheat
- *
- * @module
- */
-
 var GRADIENT_LEVELS = 256;
 
 /**
@@ -66663,19 +67391,19 @@ var SingleAxisView = AxisView.extend({
             }
             var colorIndex = (lineCount++) % lineColors.length;
             splitLines[colorIndex] = splitLines[colorIndex] || [];
-            splitLines[colorIndex].push(new Line(
-                subPixelOptimizeLine({
-                    shape: {
-                        x1: p1[0],
-                        y1: p1[1],
-                        x2: p2[0],
-                        y2: p2[1]
-                    },
-                    style: {
-                        lineWidth: lineWidth
-                    },
-                    silent: true
-                })));
+            splitLines[colorIndex].push(new Line({
+                subPixelOptimize: true,
+                shape: {
+                    x1: p1[0],
+                    y1: p1[1],
+                    x2: p2[0],
+                    y2: p2[1]
+                },
+                style: {
+                    lineWidth: lineWidth
+                },
+                silent: true
+            }));
         }
 
         for (var i = 0; i < splitLines.length; ++i) {
@@ -66751,7 +67479,7 @@ var defaultOption$2 = {
     axisLine: {
         show: true,
         lineStyle: {
-            width: 2,
+            width: 1,
             type: 'solid'
         }
     },
@@ -66767,7 +67495,7 @@ var defaultOption$2 = {
         show: true,
         length: 6,
         lineStyle: {
-            width: 2
+            width: 1
         }
     },
 
@@ -67817,7 +68545,7 @@ BaseAxisPointer.prototype = {
      */
     updatePointerEl: function (group, elOption, updateProps$$1) {
         var pointerEl = inner$11(group).pointerEl;
-        if (pointerEl) {
+        if (pointerEl && elOption.pointer) {
             pointerEl.setStyle(elOption.pointer.style);
             updateProps$$1(pointerEl, {shape: elOption.pointer.shape});
         }
@@ -68199,6 +68927,7 @@ function buildLabelElOption(
             textFont: font,
             textFill: labelModel.getTextColor(),
             textPosition: 'inside',
+            textPadding: paddings,
             fill: bgColor,
             stroke: labelModel.get('borderColor') || 'transparent',
             lineWidth: labelModel.get('borderWidth') || 0,
@@ -68243,6 +68972,8 @@ function getValueLabel(value, axis, ecModel, seriesDataIndices, opt) {
     if (formatter) {
         var params = {
             value: getAxisRawValue(axis, value),
+            axisDimension: axis.dim,
+            axisIndex: axis.index,
             seriesData: []
         };
         each$1(seriesDataIndices, function (idxItem) {
@@ -68372,7 +69103,7 @@ var CartesianAxisPointer = BaseAxisPointer.extend({
         if (axisPointerType && axisPointerType !== 'none') {
             var elStyle = buildElStyle(axisPointerModel);
             var pointerOption = pointerShapeBuilder[axisPointerType](
-                axis, pixelValue, otherExtent, elStyle
+                axis, pixelValue, otherExtent
             );
             pointerOption.style = elStyle;
             elOption.graphicKey = pointerOption.type;
@@ -68439,23 +69170,20 @@ function getCartesian(grid, axis) {
 
 var pointerShapeBuilder = {
 
-    line: function (axis, pixelValue, otherExtent, elStyle) {
+    line: function (axis, pixelValue, otherExtent) {
         var targetShape = makeLineShape(
             [pixelValue, otherExtent[0]],
             [pixelValue, otherExtent[1]],
             getAxisDimIndex(axis)
         );
-        subPixelOptimizeLine({
-            shape: targetShape,
-            style: elStyle
-        });
         return {
             type: 'Line',
+            subPixelOptimize: true,
             shape: targetShape
         };
     },
 
-    shadow: function (axis, pixelValue, otherExtent, elStyle) {
+    shadow: function (axis, pixelValue, otherExtent) {
         var bandWidth = Math.max(1, axis.getBandWidth());
         var span = otherExtent[1] - otherExtent[0];
         return {
@@ -68566,7 +69294,7 @@ var SingleAxisPointer = BaseAxisPointer.extend({
         if (axisPointerType && axisPointerType !== 'none') {
             var elStyle = buildElStyle(axisPointerModel);
             var pointerOption = pointerShapeBuilder$1[axisPointerType](
-                axis, pixelValue, otherExtent, elStyle
+                axis, pixelValue, otherExtent
             );
             pointerOption.style = elStyle;
 
@@ -68622,23 +69350,20 @@ var SingleAxisPointer = BaseAxisPointer.extend({
 
 var pointerShapeBuilder$1 = {
 
-    line: function (axis, pixelValue, otherExtent, elStyle) {
+    line: function (axis, pixelValue, otherExtent) {
         var targetShape = makeLineShape(
             [pixelValue, otherExtent[0]],
             [pixelValue, otherExtent[1]],
             getPointDimIndex(axis)
         );
-        subPixelOptimizeLine({
-            shape: targetShape,
-            style: elStyle
-        });
         return {
             type: 'Line',
+            subPixelOptimize: true,
             shape: targetShape
         };
     },
 
-    shadow: function (axis, pixelValue, otherExtent, elStyle) {
+    shadow: function (axis, pixelValue, otherExtent) {
         var bandWidth = axis.getBandWidth();
         var span = otherExtent[1] - otherExtent[0];
         return {
@@ -68705,11 +69430,6 @@ extendComponentView({
 * under the License.
 */
 
-/**
- * @file  Define the themeRiver view's series model
- * @author Deqing Li(annong035@gmail.com)
- */
-
 var DATA_NAME_INDEX = 2;
 
 var ThemeRiverSeries = SeriesModel.extend({
@@ -68895,7 +69615,7 @@ var ThemeRiverSeries = SeriesModel.extend({
 
     /**
      * Get data indices for show tooltip content
-     *
+
      * @param {Array.<string>|string} dim  single coordinate dimension
      * @param {number} value axis value
      * @param {module:echarts/coord/single/SingleAxis} baseAxis  single Axis used
@@ -68996,11 +69716,6 @@ var ThemeRiverSeries = SeriesModel.extend({
 * under the License.
 */
 
-/**
- * @file  The file used to draw themeRiver view
- * @author  Deqing Li(annong035@gmail.com)
- */
-
 extendChartView({
 
     type: 'themeRiver',
@@ -69179,11 +69894,6 @@ function createGridClipShape$3(rect, seriesModel, cb) {
 * under the License.
 */
 
-/**
- * @file  Using layout algorithm transform the raw data to layout information.
- * @author Deqing Li(annong035@gmail.com)
- */
-
 var themeRiverLayout = function (ecModel, api) {
 
     ecModel.eachSeriesByType('themeRiver', function (seriesModel) {
@@ -69338,11 +70048,6 @@ function computeBaseline(data) {
 * under the License.
 */
 
-/**
- * @file Visual encoding for themeRiver view
- * @author Deqing Li(annong035@gmail.com)
- */
-
 var themeRiverVisual = function (ecModel) {
     ecModel.eachSeriesByType('themeRiver', function (seriesModel) {
         var data = seriesModel.getData();
@@ -69802,7 +70507,7 @@ SunburstPieceProto._updateLabel = function (seriesModel, visualColor, state) {
 
     var text = retrieve(
         seriesModel.getFormattedLabel(
-            this.node.dataIndex, 'normal', null, null, 'label'
+            this.node.dataIndex, state, null, null, 'label'
         ),
         this.node.name
     );
@@ -70373,7 +71078,7 @@ registerAction(
 */
 
 
-var RADIAN$1 = Math.PI / 180;
+var RADIAN$2 = Math.PI / 180;
 
 var sunburstLayout = function (seriesType, ecModel, api, payload) {
     ecModel.eachSeriesByType(seriesType, function (seriesModel) {
@@ -70395,8 +71100,8 @@ var sunburstLayout = function (seriesType, ecModel, api, payload) {
         var r0 = parsePercent$1(radius[0], size / 2);
         var r = parsePercent$1(radius[1], size / 2);
 
-        var startAngle = -seriesModel.get('startAngle') * RADIAN$1;
-        var minAngle = seriesModel.get('minAngle') * RADIAN$1;
+        var startAngle = -seriesModel.get('startAngle') * RADIAN$2;
+        var minAngle = seriesModel.get('minAngle') * RADIAN$2;
 
         var virtualRoot = seriesModel.getData().tree.root;
         var treeRoot = seriesModel.getViewRoot();
@@ -70870,6 +71575,7 @@ var prepareCalendar = function (coordSys) {
 * under the License.
 */
 
+var CACHED_LABEL_STYLE_PROPERTIES$1 = CACHED_LABEL_STYLE_PROPERTIES;
 var ITEM_STYLE_NORMAL_PATH = ['itemStyle'];
 var ITEM_STYLE_EMPHASIS_PATH = ['emphasis', 'itemStyle'];
 var LABEL_NORMAL = ['label'];
@@ -70878,6 +71584,7 @@ var LABEL_EMPHASIS = ['emphasis', 'label'];
 // which will cause weird udpate animation.
 var GROUP_DIFF_PREFIX = 'e\0\0';
 
+
 /**
  * To reduce total package size of each coordinate systems, the modules `prepareCustom`
  * of each coordinate systems are not required by each coordinate systems directly, but
@@ -71163,7 +71870,9 @@ function updateEl(el, dataIndex, elOption, animatableModel, data, isInit, isRoot
         setElementHoverStyle(el, styleEmphasis);
         el.__cusHasEmphStl = !disableStyleEmphasis;
     }
-    isRoot && setAsHoverStyleTrigger(el, !disableStyleEmphasis);
+    if (isRoot) {
+        setAsHighDownDispatcher(el, !disableStyleEmphasis);
+    }
 }
 
 function prepareStyleTransition(prop, targetStyle, elOptionStyle, oldElStyle, isInit) {
@@ -71285,19 +71994,24 @@ function makeRenderItem(customSeries, data, ecModel, api) {
         var opacity = data.getItemVisual(dataIndexInside, 'opacity');
         opacity != null && (itemStyle.opacity = opacity);
 
-        setTextStyle(itemStyle, currLabelNormalModel, null, {
+        var labelModel = extra
+            ? applyExtraBefore(extra, currLabelNormalModel)
+            : currLabelNormalModel;
+
+        setTextStyle(itemStyle, labelModel, null, {
             autoColor: currVisualColor,
             isRectText: true
         });
 
-        itemStyle.text = currLabelNormalModel.getShallow('show')
+        itemStyle.text = labelModel.getShallow('show')
             ? retrieve2(
                 customSeries.getFormattedLabel(dataIndexInside, 'normal'),
                 getDefaultLabel(data, dataIndexInside)
             )
             : null;
 
-        extra && extend(itemStyle, extra);
+        extra && applyExtraAfter(itemStyle, extra);
+
         return itemStyle;
     }
 
@@ -71312,11 +72026,15 @@ function makeRenderItem(customSeries, data, ecModel, api) {
 
         var itemStyle = currItemModel.getModel(ITEM_STYLE_EMPHASIS_PATH).getItemStyle();
 
-        setTextStyle(itemStyle, currLabelEmphasisModel, null, {
+        var labelModel = extra
+            ? applyExtraBefore(extra, currLabelEmphasisModel)
+            : currLabelEmphasisModel;
+
+        setTextStyle(itemStyle, labelModel, null, {
             isRectText: true
         }, true);
 
-        itemStyle.text = currLabelEmphasisModel.getShallow('show')
+        itemStyle.text = labelModel.getShallow('show')
             ? retrieve3(
                 customSeries.getFormattedLabel(dataIndexInside, 'emphasis'),
                 customSeries.getFormattedLabel(dataIndexInside, 'normal'),
@@ -71324,7 +72042,8 @@ function makeRenderItem(customSeries, data, ecModel, api) {
             )
             : null;
 
-        extra && extend(itemStyle, extra);
+        extra && applyExtraAfter(itemStyle, extra);
+
         return itemStyle;
     }
 
@@ -71553,6 +72272,29 @@ function processAddUpdate(newIndex, oldIndex) {
     );
 }
 
+// `graphic#applyDefaultTextStyle` will cache
+// textFill, textStroke, textStrokeWidth.
+// We have to do this trick.
+function applyExtraBefore(extra, model) {
+    var dummyModel = new Model({}, model);
+    each$1(CACHED_LABEL_STYLE_PROPERTIES$1, function (stylePropName, modelPropName) {
+        if (extra.hasOwnProperty(stylePropName)) {
+            dummyModel.option[modelPropName] = extra[stylePropName];
+        }
+    });
+    return dummyModel;
+}
+
+function applyExtraAfter(itemStyle, extra) {
+    for (var key in extra) {
+        if (extra.hasOwnProperty(key)
+            || !CACHED_LABEL_STYLE_PROPERTIES$1.hasOwnProperty(key)
+        ) {
+            itemStyle[key] = extra[key];
+        }
+    }
+}
+
 function processRemove(oldIndex) {
     var context = this.context;
     var child = context.oldChildren[oldIndex];
@@ -71591,529 +72333,302 @@ function hasOwn(host, prop) {
 * under the License.
 */
 
-// -------------
-// Preprocessor
-// -------------
-
-registerPreprocessor(function (option) {
-    var graphicOption = option.graphic;
-
-    // Convert
-    // {graphic: [{left: 10, type: 'circle'}, ...]}
-    // or
-    // {graphic: {left: 10, type: 'circle'}}
-    // to
-    // {graphic: [{elements: [{left: 10, type: 'circle'}, ...]}]}
-    if (isArray(graphicOption)) {
-        if (!graphicOption[0] || !graphicOption[0].elements) {
-            option.graphic = [{elements: graphicOption}];
-        }
-        else {
-            // Only one graphic instance can be instantiated. (We dont
-            // want that too many views are created in echarts._viewMap)
-            option.graphic = [option.graphic[0]];
-        }
-    }
-    else if (graphicOption && !graphicOption.elements) {
-        option.graphic = [{elements: [graphicOption]}];
-    }
-});
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+*
+*   http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
 
-// ------
-// Model
-// ------
+function getSeriesStackId$1(seriesModel) {
+    return seriesModel.get('stack')
+        || '__ec_stack_' + seriesModel.seriesIndex;
+}
 
-var GraphicModel = extendComponentModel({
+function getAxisKey$1(polar, axis) {
+    return axis.dim + polar.model.componentIndex;
+}
 
-    type: 'graphic',
+/**
+ * @param {string} seriesType
+ * @param {module:echarts/model/Global} ecModel
+ * @param {module:echarts/ExtensionAPI} api
+ */
+function barLayoutPolar(seriesType, ecModel, api) {
 
-    defaultOption: {
+    var lastStackCoords = {};
 
-        // Extra properties for each elements:
-        //
-        // left/right/top/bottom: (like 12, '22%', 'center', default undefined)
-        //      If left/rigth is set, shape.x/shape.cx/position will not be used.
-        //      If top/bottom is set, shape.y/shape.cy/position will not be used.
-        //      This mechanism is useful when you want to position a group/element
-        //      against the right side or the center of this container.
-        //
-        // width/height: (can only be pixel value, default 0)
-        //      Only be used to specify contianer(group) size, if needed. And
-        //      can not be percentage value (like '33%'). See the reason in the
-        //      layout algorithm below.
-        //
-        // bounding: (enum: 'all' (default) | 'raw')
-        //      Specify how to calculate boundingRect when locating.
-        //      'all': Get uioned and transformed boundingRect
-        //          from both itself and its descendants.
-        //          This mode simplies confining a group of elements in the bounding
-        //          of their ancester container (e.g., using 'right: 0').
-        //      'raw': Only use the boundingRect of itself and before transformed.
-        //          This mode is similar to css behavior, which is useful when you
-        //          want an element to be able to overflow its container. (Consider
-        //          a rotated circle needs to be located in a corner.)
-        // info: custom info. enables user to mount some info on elements and use them
-        //      in event handlers. Update them only when user specified, otherwise, remain.
+    var barWidthAndOffset = calRadialBar(
+        filter(
+            ecModel.getSeriesByType(seriesType),
+            function (seriesModel) {
+                return !ecModel.isSeriesFiltered(seriesModel)
+                    && seriesModel.coordinateSystem
+                    && seriesModel.coordinateSystem.type === 'polar';
+            }
+        )
+    );
 
-        // Note: elements is always behind its ancestors in this elements array.
-        elements: [],
-        parentId: null
-    },
+    ecModel.eachSeriesByType(seriesType, function (seriesModel) {
 
-    /**
-     * Save el options for the sake of the performance (only update modified graphics).
-     * The order is the same as those in option. (ancesters -> descendants)
-     *
-     * @private
-     * @type {Array.<Object>}
-     */
-    _elOptionsToUpdate: null,
+        // Check series coordinate, do layout for polar only
+        if (seriesModel.coordinateSystem.type !== 'polar') {
+            return;
+        }
 
-    /**
-     * @override
-     */
-    mergeOption: function (option) {
-        // Prevent default merge to elements
-        var elements = this.option.elements;
-        this.option.elements = null;
+        var data = seriesModel.getData();
+        var polar = seriesModel.coordinateSystem;
+        var baseAxis = polar.getBaseAxis();
+        var axisKey = getAxisKey$1(polar, baseAxis);
 
-        GraphicModel.superApply(this, 'mergeOption', arguments);
+        var stackId = getSeriesStackId$1(seriesModel);
+        var columnLayoutInfo
+            = barWidthAndOffset[axisKey][stackId];
+        var columnOffset = columnLayoutInfo.offset;
+        var columnWidth = columnLayoutInfo.width;
+        var valueAxis = polar.getOtherAxis(baseAxis);
 
-        this.option.elements = elements;
-    },
+        var cx = seriesModel.coordinateSystem.cx;
+        var cy = seriesModel.coordinateSystem.cy;
 
-    /**
-     * @override
-     */
-    optionUpdated: function (newOption, isInit) {
-        var thisOption = this.option;
-        var newList = (isInit ? thisOption : newOption).elements;
-        var existList = thisOption.elements = isInit ? [] : thisOption.elements;
+        var barMinHeight = seriesModel.get('barMinHeight') || 0;
+        var barMinAngle = seriesModel.get('barMinAngle') || 0;
 
-        var flattenedList = [];
-        this._flatten(newList, flattenedList);
+        lastStackCoords[stackId] = lastStackCoords[stackId] || [];
 
-        var mappingResult = mappingToExists(existList, flattenedList);
-        makeIdAndName(mappingResult);
+        var valueDim = data.mapDimension(valueAxis.dim);
+        var baseDim = data.mapDimension(baseAxis.dim);
+        var stacked = isDimensionStacked(data, valueDim /*, baseDim*/);
 
-        // Clear elOptionsToUpdate
-        var elOptionsToUpdate = this._elOptionsToUpdate = [];
+        var valueAxisStart = valueAxis.getExtent()[0];
 
-        each$1(mappingResult, function (resultItem, index) {
-            var newElOption = resultItem.option;
+        for (var idx = 0, len = data.count(); idx < len; idx++) {
+            var value = data.get(valueDim, idx);
+            var baseValue = data.get(baseDim, idx);
 
-            if (__DEV__) {
-                assert$1(
-                    isObject$1(newElOption) || resultItem.exist,
-                    'Empty graphic option definition'
-                );
+            if (isNaN(value)) {
+                continue;
             }
 
-            if (!newElOption) {
-                return;
-            }
+            var sign = value >= 0 ? 'p' : 'n';
+            var baseCoord = valueAxisStart;
 
-            elOptionsToUpdate.push(newElOption);
+            // Because of the barMinHeight, we can not use the value in
+            // stackResultDimension directly.
+            // Only ordinal axis can be stacked.
+            if (stacked) {
+                if (!lastStackCoords[stackId][baseValue]) {
+                    lastStackCoords[stackId][baseValue] = {
+                        p: valueAxisStart, // Positive stack
+                        n: valueAxisStart  // Negative stack
+                    };
+                }
+                // Should also consider #4243
+                baseCoord = lastStackCoords[stackId][baseValue][sign];
+            }
 
-            setKeyInfoToNewElOption(resultItem, newElOption);
+            var r0;
+            var r;
+            var startAngle;
+            var endAngle;
 
-            mergeNewElOptionToExist(existList, index, newElOption);
+            // radial sector
+            if (valueAxis.dim === 'radius') {
+                var radiusSpan = valueAxis.dataToRadius(value) - valueAxisStart;
+                var angle = baseAxis.dataToAngle(baseValue);
 
-            setLayoutInfoToExist(existList[index], newElOption);
+                if (Math.abs(radiusSpan) < barMinHeight) {
+                    radiusSpan = (radiusSpan < 0 ? -1 : 1) * barMinHeight;
+                }
 
-        }, this);
+                r0 = baseCoord;
+                r = baseCoord + radiusSpan;
+                startAngle = angle - columnOffset;
+                endAngle = startAngle - columnWidth;
 
-        // Clean
-        for (var i = existList.length - 1; i >= 0; i--) {
-            if (existList[i] == null) {
-                existList.splice(i, 1);
+                stacked && (lastStackCoords[stackId][baseValue][sign] = r);
             }
+            // tangential sector
             else {
-                // $action should be volatile, otherwise option gotten from
-                // `getOption` will contain unexpected $action.
-                delete existList[i].$action;
-            }
-        }
-    },
-
-    /**
-     * Convert
-     * [{
-     *  type: 'group',
-     *  id: 'xx',
-     *  children: [{type: 'circle'}, {type: 'polygon'}]
-     * }]
-     * to
-     * [
-     *  {type: 'group', id: 'xx'},
-     *  {type: 'circle', parentId: 'xx'},
-     *  {type: 'polygon', parentId: 'xx'}
-     * ]
-     *
-     * @private
-     * @param {Array.<Object>} optionList option list
-     * @param {Array.<Object>} result result of flatten
-     * @param {Object} parentOption parent option
-     */
-    _flatten: function (optionList, result, parentOption) {
-        each$1(optionList, function (option) {
-            if (!option) {
-                return;
-            }
+                // angleAxis must be clamped.
+                var angleSpan = valueAxis.dataToAngle(value, true) - valueAxisStart;
+                var radius = baseAxis.dataToRadius(baseValue);
 
-            if (parentOption) {
-                option.parentOption = parentOption;
-            }
+                if (Math.abs(angleSpan) < barMinAngle) {
+                    angleSpan = (angleSpan < 0 ? -1 : 1) * barMinAngle;
+                }
 
-            result.push(option);
+                r0 = radius + columnOffset;
+                r = r0 + columnWidth;
+                startAngle = baseCoord;
+                endAngle = baseCoord + angleSpan;
 
-            var children = option.children;
-            if (option.type === 'group' && children) {
-                this._flatten(children, result, option);
+                // if the previous stack is at the end of the ring,
+                // add a round to differentiate it from origin
+                // var extent = angleAxis.getExtent();
+                // var stackCoord = angle;
+                // if (stackCoord === extent[0] && value > 0) {
+                //     stackCoord = extent[1];
+                // }
+                // else if (stackCoord === extent[1] && value < 0) {
+                //     stackCoord = extent[0];
+                // }
+                stacked && (lastStackCoords[stackId][baseValue][sign] = endAngle);
             }
-            // Deleting for JSON output, and for not affecting group creation.
-            delete option.children;
-        }, this);
-    },
 
-    // FIXME
-    // Pass to view using payload? setOption has a payload?
-    useElOptionsToUpdate: function () {
-        var els = this._elOptionsToUpdate;
-        // Clear to avoid render duplicately when zooming.
-        this._elOptionsToUpdate = null;
-        return els;
-    }
-});
+            data.setItemLayout(idx, {
+                cx: cx,
+                cy: cy,
+                r0: r0,
+                r: r,
+                // Consider that positive angle is anti-clockwise,
+                // while positive radian of sector is clockwise
+                startAngle: -startAngle * Math.PI / 180,
+                endAngle: -endAngle * Math.PI / 180
+            });
 
-// -----
-// View
-// -----
+        }
 
-extendComponentView({
+    }, this);
 
-    type: 'graphic',
+}
 
-    /**
-     * @override
-     */
-    init: function (ecModel, api) {
+/**
+ * Calculate bar width and offset for radial bar charts
+ */
+function calRadialBar(barSeries, api) {
+    // Columns info on each category axis. Key is polar name
+    var columnsMap = {};
 
-        /**
-         * @private
-         * @type {module:zrender/core/util.HashMap}
-         */
-        this._elMap = createHashMap();
+    each$1(barSeries, function (seriesModel, idx) {
+        var data = seriesModel.getData();
+        var polar = seriesModel.coordinateSystem;
 
-        /**
-         * @private
-         * @type {module:echarts/graphic/GraphicModel}
-         */
-        this._lastGraphicModel;
-    },
+        var baseAxis = polar.getBaseAxis();
+        var axisKey = getAxisKey$1(polar, baseAxis);
 
-    /**
-     * @override
-     */
-    render: function (graphicModel, ecModel, api) {
+        var axisExtent = baseAxis.getExtent();
+        var bandWidth = baseAxis.type === 'category'
+            ? baseAxis.getBandWidth()
+            : (Math.abs(axisExtent[1] - axisExtent[0]) / data.count());
 
-        // Having leveraged between use cases and algorithm complexity, a very
-        // simple layout mechanism is used:
-        // The size(width/height) can be determined by itself or its parent (not
-        // implemented yet), but can not by its children. (Top-down travel)
-        // The location(x/y) can be determined by the bounding rect of itself
-        // (can including its descendants or not) and the size of its parent.
-        // (Bottom-up travel)
+        var columnsOnAxis = columnsMap[axisKey] || {
+            bandWidth: bandWidth,
+            remainedWidth: bandWidth,
+            autoWidthCount: 0,
+            categoryGap: '20%',
+            gap: '30%',
+            stacks: {}
+        };
+        var stacks = columnsOnAxis.stacks;
+        columnsMap[axisKey] = columnsOnAxis;
 
-        // When `chart.clear()` or `chart.setOption({...}, true)` with the same id,
-        // view will be reused.
-        if (graphicModel !== this._lastGraphicModel) {
-            this._clear();
-        }
-        this._lastGraphicModel = graphicModel;
+        var stackId = getSeriesStackId$1(seriesModel);
 
-        this._updateElements(graphicModel);
-        this._relocate(graphicModel, api);
-    },
+        if (!stacks[stackId]) {
+            columnsOnAxis.autoWidthCount++;
+        }
+        stacks[stackId] = stacks[stackId] || {
+            width: 0,
+            maxWidth: 0
+        };
 
-    /**
-     * Update graphic elements.
-     *
-     * @private
-     * @param {Object} graphicModel graphic model
-     */
-    _updateElements: function (graphicModel) {
-        var elOptionsToUpdate = graphicModel.useElOptionsToUpdate();
+        var barWidth = parsePercent$1(
+            seriesModel.get('barWidth'),
+            bandWidth
+        );
+        var barMaxWidth = parsePercent$1(
+            seriesModel.get('barMaxWidth'),
+            bandWidth
+        );
+        var barGap = seriesModel.get('barGap');
+        var barCategoryGap = seriesModel.get('barCategoryGap');
 
-        if (!elOptionsToUpdate) {
-            return;
+        if (barWidth && !stacks[stackId].width) {
+            barWidth = Math.min(columnsOnAxis.remainedWidth, barWidth);
+            stacks[stackId].width = barWidth;
+            columnsOnAxis.remainedWidth -= barWidth;
         }
 
-        var elMap = this._elMap;
-        var rootGroup = this.group;
+        barMaxWidth && (stacks[stackId].maxWidth = barMaxWidth);
+        (barGap != null) && (columnsOnAxis.gap = barGap);
+        (barCategoryGap != null) && (columnsOnAxis.categoryGap = barCategoryGap);
+    });
 
-        // Top-down tranverse to assign graphic settings to each elements.
-        each$1(elOptionsToUpdate, function (elOption) {
-            var $action = elOption.$action;
-            var id = elOption.id;
-            var existEl = elMap.get(id);
-            var parentId = elOption.parentId;
-            var targetElParent = parentId != null ? elMap.get(parentId) : rootGroup;
 
-            var elOptionStyle = elOption.style;
-            if (elOption.type === 'text' && elOptionStyle) {
-                // In top/bottom mode, textVerticalAlign should not be used, which cause
-                // inaccurately locating.
-                if (elOption.hv && elOption.hv[1]) {
-                    elOptionStyle.textVerticalAlign = elOptionStyle.textBaseline = null;
-                }
+    var result = {};
 
-                // Compatible with previous setting: both support fill and textFill,
-                // stroke and textStroke.
-                !elOptionStyle.hasOwnProperty('textFill') && elOptionStyle.fill && (
-                    elOptionStyle.textFill = elOptionStyle.fill
-                );
-                !elOptionStyle.hasOwnProperty('textStroke') && elOptionStyle.stroke && (
-                    elOptionStyle.textStroke = elOptionStyle.stroke
-                );
-            }
+    each$1(columnsMap, function (columnsOnAxis, coordSysName) {
 
-            // Remove unnecessary props to avoid potential problems.
-            var elOptionCleaned = getCleanedElOption(elOption);
+        result[coordSysName] = {};
 
-            // For simple, do not support parent change, otherwise reorder is needed.
-            if (__DEV__) {
-                existEl && assert$1(
-                    targetElParent === existEl.parent,
-                    'Changing parent is not supported.'
-                );
-            }
+        var stacks = columnsOnAxis.stacks;
+        var bandWidth = columnsOnAxis.bandWidth;
+        var categoryGap = parsePercent$1(columnsOnAxis.categoryGap, bandWidth);
+        var barGapPercent = parsePercent$1(columnsOnAxis.gap, 1);
 
-            if (!$action || $action === 'merge') {
-                existEl
-                    ? existEl.attr(elOptionCleaned)
-                    : createEl$1(id, targetElParent, elOptionCleaned, elMap);
-            }
-            else if ($action === 'replace') {
-                removeEl(existEl, elMap);
-                createEl$1(id, targetElParent, elOptionCleaned, elMap);
-            }
-            else if ($action === 'remove') {
-                removeEl(existEl, elMap);
-            }
+        var remainedWidth = columnsOnAxis.remainedWidth;
+        var autoWidthCount = columnsOnAxis.autoWidthCount;
+        var autoWidth = (remainedWidth - categoryGap)
+            / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);
+        autoWidth = Math.max(autoWidth, 0);
 
-            var el = elMap.get(id);
-            if (el) {
-                el.__ecGraphicWidth = elOption.width;
-                el.__ecGraphicHeight = elOption.height;
-                setEventData(el, graphicModel, elOption);
+        // Find if any auto calculated bar exceeded maxBarWidth
+        each$1(stacks, function (column, stack) {
+            var maxWidth = column.maxWidth;
+            if (maxWidth && maxWidth < autoWidth) {
+                maxWidth = Math.min(maxWidth, remainedWidth);
+                if (column.width) {
+                    maxWidth = Math.min(maxWidth, column.width);
+                }
+                remainedWidth -= maxWidth;
+                column.width = maxWidth;
+                autoWidthCount--;
             }
         });
-    },
 
-    /**
-     * Locate graphic elements.
-     *
-     * @private
-     * @param {Object} graphicModel graphic model
-     * @param {module:echarts/ExtensionAPI} api extension API
-     */
-    _relocate: function (graphicModel, api) {
-        var elOptions = graphicModel.option.elements;
-        var rootGroup = this.group;
-        var elMap = this._elMap;
+        // Recalculate width again
+        autoWidth = (remainedWidth - categoryGap)
+            / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);
+        autoWidth = Math.max(autoWidth, 0);
 
-        // Bottom-up tranvese all elements (consider ec resize) to locate elements.
-        for (var i = elOptions.length - 1; i >= 0; i--) {
-            var elOption = elOptions[i];
-            var el = elMap.get(elOption.id);
-
-            if (!el) {
-                continue;
+        var widthSum = 0;
+        var lastColumn;
+        each$1(stacks, function (column, idx) {
+            if (!column.width) {
+                column.width = autoWidth;
             }
-
-            var parentEl = el.parent;
-            var containerInfo = parentEl === rootGroup
-                ? {
-                    width: api.getWidth(),
-                    height: api.getHeight()
-                }
-                : { // Like 'position:absolut' in css, default 0.
-                    width: parentEl.__ecGraphicWidth || 0,
-                    height: parentEl.__ecGraphicHeight || 0
-                };
-
-            positionElement(
-                el, elOption, containerInfo, null,
-                {hv: elOption.hv, boundingMode: elOption.bounding}
-            );
-        }
-    },
-
-    /**
-     * Clear all elements.
-     *
-     * @private
-     */
-    _clear: function () {
-        var elMap = this._elMap;
-        elMap.each(function (el) {
-            removeEl(el, elMap);
+            lastColumn = column;
+            widthSum += column.width * (1 + barGapPercent);
         });
-        this._elMap = createHashMap();
-    },
-
-    /**
-     * @override
-     */
-    dispose: function () {
-        this._clear();
-    }
-});
-
-function createEl$1(id, targetElParent, elOption, elMap) {
-    var graphicType = elOption.type;
-
-    if (__DEV__) {
-        assert$1(graphicType, 'graphic type MUST be set');
-    }
-
-    var Clz = graphic[graphicType.charAt(0).toUpperCase() + graphicType.slice(1)];
-
-    if (__DEV__) {
-        assert$1(Clz, 'graphic type can not be found');
-    }
+        if (lastColumn) {
+            widthSum -= lastColumn.width * barGapPercent;
+        }
 
-    var el = new Clz(elOption);
-    targetElParent.add(el);
-    elMap.set(id, el);
-    el.__ecGraphicId = id;
-}
+        var offset = -widthSum / 2;
+        each$1(stacks, function (column, stackId) {
+            result[coordSysName][stackId] = result[coordSysName][stackId] || {
+                offset: offset,
+                width: column.width
+            };
 
-function removeEl(existEl, elMap) {
-    var existElParent = existEl && existEl.parent;
-    if (existElParent) {
-        existEl.type === 'group' && existEl.traverse(function (el) {
-            removeEl(el, elMap);
+            offset += column.width * (1 + barGapPercent);
         });
-        elMap.removeKey(existEl.__ecGraphicId);
-        existElParent.remove(existEl);
-    }
-}
-
-// Remove unnecessary props to avoid potential problems.
-function getCleanedElOption(elOption) {
-    elOption = extend({}, elOption);
-    each$1(
-        ['id', 'parentId', '$action', 'hv', 'bounding'].concat(LOCATION_PARAMS),
-        function (name) {
-            delete elOption[name];
-        }
-    );
-    return elOption;
-}
-
-function isSetLoc(obj, props) {
-    var isSet;
-    each$1(props, function (prop) {
-        obj[prop] != null && obj[prop] !== 'auto' && (isSet = true);
     });
-    return isSet;
-}
-
-function setKeyInfoToNewElOption(resultItem, newElOption) {
-    var existElOption = resultItem.exist;
-
-    // Set id and type after id assigned.
-    newElOption.id = resultItem.keyInfo.id;
-    !newElOption.type && existElOption && (newElOption.type = existElOption.type);
-
-    // Set parent id if not specified
-    if (newElOption.parentId == null) {
-        var newElParentOption = newElOption.parentOption;
-        if (newElParentOption) {
-            newElOption.parentId = newElParentOption.id;
-        }
-        else if (existElOption) {
-            newElOption.parentId = existElOption.parentId;
-        }
-    }
-
-    // Clear
-    newElOption.parentOption = null;
-}
-
-function mergeNewElOptionToExist(existList, index, newElOption) {
-    // Update existing options, for `getOption` feature.
-    var newElOptCopy = extend({}, newElOption);
-    var existElOption = existList[index];
-
-    var $action = newElOption.$action || 'merge';
-    if ($action === 'merge') {
-        if (existElOption) {
-
-            if (__DEV__) {
-                var newType = newElOption.type;
-                assert$1(
-                    !newType || existElOption.type === newType,
-                    'Please set $action: "replace" to change `type`'
-                );
-            }
-
-            // We can ensure that newElOptCopy and existElOption are not
-            // the same object, so `merge` will not change newElOptCopy.
-            merge(existElOption, newElOptCopy, true);
-            // Rigid body, use ignoreSize.
-            mergeLayoutParam(existElOption, newElOptCopy, {ignoreSize: true});
-            // Will be used in render.
-            copyLayoutParams(newElOption, existElOption);
-        }
-        else {
-            existList[index] = newElOptCopy;
-        }
-    }
-    else if ($action === 'replace') {
-        existList[index] = newElOptCopy;
-    }
-    else if ($action === 'remove') {
-        // null will be cleaned later.
-        existElOption && (existList[index] = null);
-    }
-}
-
-function setLayoutInfoToExist(existItem, newElOption) {
-    if (!existItem) {
-        return;
-    }
-    existItem.hv = newElOption.hv = [
-        // Rigid body, dont care `width`.
-        isSetLoc(newElOption, ['left', 'right']),
-        // Rigid body, dont care `height`.
-        isSetLoc(newElOption, ['top', 'bottom'])
-    ];
-    // Give default group size. Otherwise layout error may occur.
-    if (existItem.type === 'group') {
-        existItem.width == null && (existItem.width = newElOption.width = 0);
-        existItem.height == null && (existItem.height = newElOption.height = 0);
-    }
-}
-
-function setEventData(el, graphicModel, elOption) {
-    var eventData = el.eventData;
-    // Simple optimize for large amount of elements that no need event.
-    if (!el.silent && !el.ignore && !eventData) {
-        eventData = el.eventData = {
-            componentType: 'graphic',
-            componentIndex: graphicModel.componentIndex,
-            name: el.name
-        };
-    }
 
-    // `elOption.info` enables user to mount some info on
-    // elements and use them in event handlers.
-    if (eventData) {
-        eventData.info = el.info;
-    }
+    return result;
 }
 
 /*
@@ -72135,6 +72650,39 @@ function setEventData(el, graphicModel, elOption) {
 * under the License.
 */
 
+function RadiusAxis(scale, radiusExtent) {
+
+    Axis.call(this, 'radius', scale, radiusExtent);
+
+    /**
+     * Axis type
+     *  - 'category'
+     *  - 'value'
+     *  - 'time'
+     *  - 'log'
+     * @type {string}
+     */
+    this.type = 'category';
+}
+
+RadiusAxis.prototype = {
+
+    constructor: RadiusAxis,
+
+    /**
+     * @override
+     */
+    pointToData: function (point, clamp) {
+        return this.polar.pointToData(point, clamp)[this.dim === 'radius' ? 0 : 1];
+    },
+
+    dataToRadius: Axis.prototype.dataToCoord,
+
+    radiusToData: Axis.prototype.coordToData
+};
+
+inherits(RadiusAxis, Axis);
+
 /*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
@@ -72154,229 +72702,107 @@ function setEventData(el, graphicModel, elOption) {
 * under the License.
 */
 
-var LegendModel = extendComponentModel({
-
-    type: 'legend.plain',
-
-    dependencies: ['series'],
-
-    layoutMode: {
-        type: 'box',
-        // legend.width/height are maxWidth/maxHeight actually,
-        // whereas realy width/height is calculated by its content.
-        // (Setting {left: 10, right: 10} does not make sense).
-        // So consider the case:
-        // `setOption({legend: {left: 10});`
-        // then `setOption({legend: {right: 10});`
-        // The previous `left` should be cleared by setting `ignoreSize`.
-        ignoreSize: true
-    },
-
-    init: function (option, parentModel, ecModel) {
-        this.mergeDefaultAndTheme(option, ecModel);
-
-        option.selected = option.selected || {};
-    },
-
-    mergeOption: function (option) {
-        LegendModel.superCall(this, 'mergeOption', option);
-    },
-
-    optionUpdated: function () {
-        this._updateData(this.ecModel);
-
-        var legendData = this._data;
-
-        // If selectedMode is single, try to select one
-        if (legendData[0] && this.get('selectedMode') === 'single') {
-            var hasSelected = false;
-            // If has any selected in option.selected
-            for (var i = 0; i < legendData.length; i++) {
-                var name = legendData[i].get('name');
-                if (this.isSelected(name)) {
-                    // Force to unselect others
-                    this.select(name);
-                    hasSelected = true;
-                    break;
-                }
-            }
-            // Try select the first if selectedMode is single
-            !hasSelected && this.select(legendData[0].get('name'));
-        }
-    },
-
-    _updateData: function (ecModel) {
-        var potentialData = [];
-        var availableNames = [];
-
-        ecModel.eachRawSeries(function (seriesModel) {
-            var seriesName = seriesModel.name;
-            availableNames.push(seriesName);
-            var isPotential;
-
-            if (seriesModel.legendDataProvider) {
-                var data = seriesModel.legendDataProvider();
-                var names = data.mapArray(data.getName);
-
-                if (!ecModel.isSeriesFiltered(seriesModel)) {
-                    availableNames = availableNames.concat(names);
-                }
-
-                if (names.length) {
-                    potentialData = potentialData.concat(names);
-                }
-                else {
-                    isPotential = true;
-                }
-            }
-            else {
-                isPotential = true;
-            }
-
-            if (isPotential && isNameSpecified(seriesModel)) {
-                potentialData.push(seriesModel.name);
-            }
-        });
-
-        /**
-         * @type {Array.<string>}
-         * @private
-         */
-        this._availableNames = availableNames;
+var inner$12 = makeInner();
 
-        // If legend.data not specified in option, use availableNames as data,
-        // which is convinient for user preparing option.
-        var rawData = this.get('data') || potentialData;
+function AngleAxis(scale, angleExtent) {
 
-        var legendData = map(rawData, function (dataItem) {
-            // Can be string or number
-            if (typeof dataItem === 'string' || typeof dataItem === 'number') {
-                dataItem = {
-                    name: dataItem
-                };
-            }
-            return new Model(dataItem, this, this.ecModel);
-        }, this);
+    angleExtent = angleExtent || [0, 360];
 
-        /**
-         * @type {Array.<module:echarts/model/Model>}
-         * @private
-         */
-        this._data = legendData;
-    },
+    Axis.call(this, 'angle', scale, angleExtent);
 
     /**
-     * @return {Array.<module:echarts/model/Model>}
+     * Axis type
+     *  - 'category'
+     *  - 'value'
+     *  - 'time'
+     *  - 'log'
+     * @type {string}
      */
-    getData: function () {
-        return this._data;
-    },
+    this.type = 'category';
+}
 
-    /**
-     * @param {string} name
-     */
-    select: function (name) {
-        var selected = this.option.selected;
-        var selectedMode = this.get('selectedMode');
-        if (selectedMode === 'single') {
-            var data = this._data;
-            each$1(data, function (dataItem) {
-                selected[dataItem.get('name')] = false;
-            });
-        }
-        selected[name] = true;
-    },
+AngleAxis.prototype = {
 
-    /**
-     * @param {string} name
-     */
-    unSelect: function (name) {
-        if (this.get('selectedMode') !== 'single') {
-            this.option.selected[name] = false;
-        }
-    },
+    constructor: AngleAxis,
 
     /**
-     * @param {string} name
+     * @override
      */
-    toggleSelected: function (name) {
-        var selected = this.option.selected;
-        // Default is true
-        if (!selected.hasOwnProperty(name)) {
-            selected[name] = true;
-        }
-        this[selected[name] ? 'unSelect' : 'select'](name);
+    pointToData: function (point, clamp) {
+        return this.polar.pointToData(point, clamp)[this.dim === 'radius' ? 0 : 1];
     },
 
-    /**
-     * @param {string} name
-     */
-    isSelected: function (name) {
-        var selected = this.option.selected;
-        return !(selected.hasOwnProperty(name) && !selected[name])
-            && indexOf(this._availableNames, name) >= 0;
-    },
+    dataToAngle: Axis.prototype.dataToCoord,
 
-    defaultOption: {
-        // 一级层叠
-        zlevel: 0,
-        // 二级层叠
-        z: 4,
-        show: true,
+    angleToData: Axis.prototype.coordToData,
 
-        // 布局方式,默认为水平布局,可选为:
-        // 'horizontal' | 'vertical'
-        orient: 'horizontal',
+    /**
+     * Only be called in category axis.
+     * Angle axis uses text height to decide interval
+     *
+     * @override
+     * @return {number} Auto interval for cateogry axis tick and label
+     */
+    calculateCategoryInterval: function () {
+        var axis = this;
+        var labelModel = axis.getLabelModel();
 
-        left: 'center',
-        // right: 'center',
+        var ordinalScale = axis.scale;
+        var ordinalExtent = ordinalScale.getExtent();
+        // Providing this method is for optimization:
+        // avoid generating a long array by `getTicks`
+        // in large category data case.
+        var tickCount = ordinalScale.count();
 
-        top: 0,
-        // bottom: null,
+        if (ordinalExtent[1] - ordinalExtent[0] < 1) {
+            return 0;
+        }
 
-        // 水平对齐
-        // 'auto' | 'left' | 'right'
-        // 默认为 'auto', 根据 x 的位置判断是左对齐还是右对齐
-        align: 'auto',
+        var tickValue = ordinalExtent[0];
+        var unitSpan = axis.dataToCoord(tickValue + 1) - axis.dataToCoord(tickValue);
+        var unitH = Math.abs(unitSpan);
 
-        backgroundColor: 'rgba(0,0,0,0)',
-        // 图例边框颜色
-        borderColor: '#ccc',
-        borderRadius: 0,
-        // 图例边框线宽,单位px,默认为0(无边框)
-        borderWidth: 0,
-        // 图例内边距,单位px,默认各方向内边距为5,
-        // 接受数组分别设定上右下左边距,同css
-        padding: 5,
-        // 各个item之间的间隔,单位px,默认为10,
-        // 横向布局时为水平间隔,纵向布局时为纵向间隔
-        itemGap: 10,
-        // 图例图形宽度
-        itemWidth: 25,
-        // 图例图形高度
-        itemHeight: 14,
+        // Not precise, just use height as text width
+        // and each distance from axis line yet.
+        var rect = getBoundingRect(
+            tickValue, labelModel.getFont(), 'center', 'top'
+        );
+        var maxH = Math.max(rect.height, 7);
 
-        // 图例关闭时候的颜色
-        inactiveColor: '#ccc',
+        var dh = maxH / unitH;
+        // 0/0 is NaN, 1/0 is Infinity.
+        isNaN(dh) && (dh = Infinity);
+        var interval = Math.max(0, Math.floor(dh));
 
-        textStyle: {
-            // 图例文字颜色
-            color: '#333'
-        },
-        // formatter: '',
-        // 选择模式,默认开启图例开关
-        selectedMode: true,
-        // 配置默认选中状态,可配合LEGEND.SELECTED事件做动态数据载入
-        // selected: null,
-        // 图例内容(详见legend.data,数组中每一项代表一个item
-        // data: [],
+        var cache = inner$12(axis.model);
+        var lastAutoInterval = cache.lastAutoInterval;
+        var lastTickCount = cache.lastTickCount;
 
-        // Tooltip 相关配置
-        tooltip: {
-            show: false
+        // Use cache to keep interval stable while moving zoom window,
+        // otherwise the calculated interval might jitter when the zoom
+        // window size is close to the interval-changing size.
+        if (lastAutoInterval != null
+            && lastTickCount != null
+            && Math.abs(lastAutoInterval - interval) <= 1
+            && Math.abs(lastTickCount - tickCount) <= 1
+            // Always choose the bigger one, otherwise the critical
+            // point is not the same when zooming in or zooming out.
+            && lastAutoInterval > interval
+        ) {
+            interval = lastAutoInterval;
+        }
+        // Only update cache if cache not used, otherwise the
+        // changing of interval is too insensitive.
+        else {
+            cache.lastTickCount = tickCount;
+            cache.lastAutoInterval = interval;
         }
+
+        return interval;
     }
-});
+};
+
+inherits(AngleAxis, Axis);
 
 /*
 * Licensed to the Apache Software Foundation (ASF) under one
@@ -72397,79 +72823,243 @@ var LegendModel = extendComponentModel({
 * under the License.
 */
 
-function legendSelectActionHandler(methodName, payload, ecModel) {
-    var selectedMap = {};
-    var isToggleSelect = methodName === 'toggleSelected';
-    var isSelected;
-    // Update all legend components
-    ecModel.eachComponent('legend', function (legendModel) {
-        if (isToggleSelect && isSelected != null) {
-            // Force other legend has same selected status
-            // Or the first is toggled to true and other are toggled to false
-            // In the case one legend has some item unSelected in option. And if other legend
-            // doesn't has the item, they will assume it is selected.
-            legendModel[isSelected ? 'select' : 'unSelect'](payload.name);
-        }
-        else {
-            legendModel[methodName](payload.name);
-            isSelected = legendModel.isSelected(payload.name);
-        }
-        var legendData = legendModel.getData();
-        each$1(legendData, function (model) {
-            var name = model.get('name');
-            // Wrap element
-            if (name === '\n' || name === '') {
-                return;
-            }
-            var isItemSelected = legendModel.isSelected(name);
-            if (selectedMap.hasOwnProperty(name)) {
-                // Unselected if any legend is unselected
-                selectedMap[name] = selectedMap[name] && isItemSelected;
-            }
-            else {
-                selectedMap[name] = isItemSelected;
-            }
-        });
-    });
-    // Return the event explicitly
-    return {
-        name: payload.name,
-        selected: selectedMap
-    };
-}
 /**
- * @event legendToggleSelect
- * @type {Object}
- * @property {string} type 'legendToggleSelect'
- * @property {string} [from]
- * @property {string} name Series name or data item name
+ * @module echarts/coord/polar/Polar
  */
-registerAction(
-    'legendToggleSelect', 'legendselectchanged',
-    curry(legendSelectActionHandler, 'toggleSelected')
-);
 
 /**
- * @event legendSelect
- * @type {Object}
- * @property {string} type 'legendSelect'
- * @property {string} name Series name or data item name
+ * @alias {module:echarts/coord/polar/Polar}
+ * @constructor
+ * @param {string} name
  */
-registerAction(
-    'legendSelect', 'legendselected',
-    curry(legendSelectActionHandler, 'select')
-);
+var Polar = function (name) {
 
-/**
- * @event legendUnSelect
- * @type {Object}
- * @property {string} type 'legendUnSelect'
- * @property {string} name Series name or data item name
- */
-registerAction(
-    'legendUnSelect', 'legendunselected',
-    curry(legendSelectActionHandler, 'unSelect')
-);
+    /**
+     * @type {string}
+     */
+    this.name = name || '';
+
+    /**
+     * x of polar center
+     * @type {number}
+     */
+    this.cx = 0;
+
+    /**
+     * y of polar center
+     * @type {number}
+     */
+    this.cy = 0;
+
+    /**
+     * @type {module:echarts/coord/polar/RadiusAxis}
+     * @private
+     */
+    this._radiusAxis = new RadiusAxis();
+
+    /**
+     * @type {module:echarts/coord/polar/AngleAxis}
+     * @private
+     */
+    this._angleAxis = new AngleAxis();
+
+    this._radiusAxis.polar = this._angleAxis.polar = this;
+};
+
+Polar.prototype = {
+
+    type: 'polar',
+
+    axisPointerEnabled: true,
+
+    constructor: Polar,
+
+    /**
+     * @param {Array.<string>}
+     * @readOnly
+     */
+    dimensions: ['radius', 'angle'],
+
+    /**
+     * @type {module:echarts/coord/PolarModel}
+     */
+    model: null,
+
+    /**
+     * If contain coord
+     * @param {Array.<number>} point
+     * @return {boolean}
+     */
+    containPoint: function (point) {
+        var coord = this.pointToCoord(point);
+        return this._radiusAxis.contain(coord[0])
+            && this._angleAxis.contain(coord[1]);
+    },
+
+    /**
+     * If contain data
+     * @param {Array.<number>} data
+     * @return {boolean}
+     */
+    containData: function (data) {
+        return this._radiusAxis.containData(data[0])
+            && this._angleAxis.containData(data[1]);
+    },
+
+    /**
+     * @param {string} dim
+     * @return {module:echarts/coord/polar/AngleAxis|module:echarts/coord/polar/RadiusAxis}
+     */
+    getAxis: function (dim) {
+        return this['_' + dim + 'Axis'];
+    },
+
+    /**
+     * @return {Array.<module:echarts/coord/Axis>}
+     */
+    getAxes: function () {
+        return [this._radiusAxis, this._angleAxis];
+    },
+
+    /**
+     * Get axes by type of scale
+     * @param {string} scaleType
+     * @return {module:echarts/coord/polar/AngleAxis|module:echarts/coord/polar/RadiusAxis}
+     */
+    getAxesByScale: function (scaleType) {
+        var axes = [];
+        var angleAxis = this._angleAxis;
+        var radiusAxis = this._radiusAxis;
+        angleAxis.scale.type === scaleType && axes.push(angleAxis);
+        radiusAxis.scale.type === scaleType && axes.push(radiusAxis);
+
+        return axes;
+    },
+
+    /**
+     * @return {module:echarts/coord/polar/AngleAxis}
+     */
+    getAngleAxis: function () {
+        return this._angleAxis;
+    },
+
+    /**
+     * @return {module:echarts/coord/polar/RadiusAxis}
+     */
+    getRadiusAxis: function () {
+        return this._radiusAxis;
+    },
+
+    /**
+     * @param {module:echarts/coord/polar/Axis}
+     * @return {module:echarts/coord/polar/Axis}
+     */
+    getOtherAxis: function (axis) {
+        var angleAxis = this._angleAxis;
+        return axis === angleAxis ? this._radiusAxis : angleAxis;
+    },
+
+    /**
+     * Base axis will be used on stacking.
+     *
+     * @return {module:echarts/coord/polar/Axis}
+     */
+    getBaseAxis: function () {
+        return this.getAxesByScale('ordinal')[0]
+            || this.getAxesByScale('time')[0]
+            || this.getAngleAxis();
+    },
+
+    /**
+     * @param {string} [dim] 'radius' or 'angle' or 'auto' or null/undefined
+     * @return {Object} {baseAxes: [], otherAxes: []}
+     */
+    getTooltipAxes: function (dim) {
+        var baseAxis = (dim != null && dim !== 'auto')
+            ? this.getAxis(dim) : this.getBaseAxis();
+        return {
+            baseAxes: [baseAxis],
+            otherAxes: [this.getOtherAxis(baseAxis)]
+        };
+    },
+
+    /**
+     * Convert a single data item to (x, y) point.
+     * Parameter data is an array which the first element is radius and the second is angle
+     * @param {Array.<number>} data
+     * @param {boolean} [clamp=false]
+     * @return {Array.<number>}
+     */
+    dataToPoint: function (data, clamp) {
+        return this.coordToPoint([
+            this._radiusAxis.dataToRadius(data[0], clamp),
+            this._angleAxis.dataToAngle(data[1], clamp)
+        ]);
+    },
+
+    /**
+     * Convert a (x, y) point to data
+     * @param {Array.<number>} point
+     * @param {boolean} [clamp=false]
+     * @return {Array.<number>}
+     */
+    pointToData: function (point, clamp) {
+        var coord = this.pointToCoord(point);
+        return [
+            this._radiusAxis.radiusToData(coord[0], clamp),
+            this._angleAxis.angleToData(coord[1], clamp)
+        ];
+    },
+
+    /**
+     * Convert a (x, y) point to (radius, angle) coord
+     * @param {Array.<number>} point
+     * @return {Array.<number>}
+     */
+    pointToCoord: function (point) {
+        var dx = point[0] - this.cx;
+        var dy = point[1] - this.cy;
+        var angleAxis = this.getAngleAxis();
+        var extent = angleAxis.getExtent();
+        var minAngle = Math.min(extent[0], extent[1]);
+        var maxAngle = Math.max(extent[0], extent[1]);
+        // Fix fixed extent in polarCreator
+        // FIXME
+        angleAxis.inverse
+            ? (minAngle = maxAngle - 360)
+            : (maxAngle = minAngle + 360);
+
+        var radius = Math.sqrt(dx * dx + dy * dy);
+        dx /= radius;
+        dy /= radius;
+
+        var radian = Math.atan2(-dy, dx) / Math.PI * 180;
+
+        // move to angleExtent
+        var dir = radian < minAngle ? 1 : -1;
+        while (radian < minAngle || radian > maxAngle) {
+            radian += dir * 360;
+        }
+
+        return [radius, radian];
+    },
+
+    /**
+     * Convert a (radius, angle) coord to (x, y) point
+     * @param {Array.<number>} coord
+     * @return {Array.<number>}
+     */
+    coordToPoint: function (coord) {
+        var radius = coord[0];
+        var radian = coord[1] / 180 * Math.PI;
+        var x = Math.cos(radian) * radius + this.cx;
+        // Inverse the y
+        var y = -Math.sin(radian) * radius + this.cy;
+
+        return [x, y];
+    }
+
+};
 
 /*
 * Licensed to the Apache Software Foundation (ASF) under one
@@ -72490,66 +73080,61 @@ registerAction(
 * under the License.
 */
 
-/**
- * Layout list like component.
- * It will box layout each items in group of component and then position the whole group in the viewport
- * @param {module:zrender/group/Group} group
- * @param {module:echarts/model/Component} componentModel
- * @param {module:echarts/ExtensionAPI}
- */
-function layout$3(group, componentModel, api) {
-    var boxLayoutParams = componentModel.getBoxLayoutParams();
-    var padding = componentModel.get('padding');
-    var viewportSize = {width: api.getWidth(), height: api.getHeight()};
+var PolarAxisModel = ComponentModel.extend({
 
-    var rect = getLayoutRect(
-        boxLayoutParams,
-        viewportSize,
-        padding
-    );
+    type: 'polarAxis',
 
-    box(
-        componentModel.get('orient'),
-        group,
-        componentModel.get('itemGap'),
-        rect.width,
-        rect.height
-    );
+    /**
+     * @type {module:echarts/coord/polar/AngleAxis|module:echarts/coord/polar/RadiusAxis}
+     */
+    axis: null,
 
-    positionElement(
-        group,
-        boxLayoutParams,
-        viewportSize,
-        padding
-    );
-}
+    /**
+     * @override
+     */
+    getCoordSysModel: function () {
+        return this.ecModel.queryComponents({
+            mainType: 'polar',
+            index: this.option.polarIndex,
+            id: this.option.polarId
+        })[0];
+    }
 
-function makeBackground(rect, componentModel) {
-    var padding = normalizeCssArray$1(
-        componentModel.get('padding')
-    );
-    var style = componentModel.getItemStyle(['color', 'opacity']);
-    style.fill = componentModel.get('backgroundColor');
-    var rect = new Rect({
-        shape: {
-            x: rect.x - padding[3],
-            y: rect.y - padding[0],
-            width: rect.width + padding[1] + padding[3],
-            height: rect.height + padding[0] + padding[2],
-            r: componentModel.get('borderRadius')
-        },
-        style: style,
-        silent: true,
-        z2: -1
-    });
-    // FIXME
-    // `subPixelOptimizeRect` may bring some gap between edge of viewpart
-    // and background rect when setting like `left: 0`, `top: 0`.
-    // graphic.subPixelOptimizeRect(rect);
+});
 
-    return rect;
+merge(PolarAxisModel.prototype, axisModelCommonMixin);
+
+var polarAxisDefaultExtendedOption = {
+    angle: {
+        // polarIndex: 0,
+        // polarId: '',
+
+        startAngle: 90,
+
+        clockwise: true,
+
+        splitNumber: 12,
+
+        axisLabel: {
+            rotate: false
+        }
+    },
+    radius: {
+        // polarIndex: 0,
+        // polarId: '',
+
+        splitNumber: 5
+    }
+};
+
+function getAxisType$3(axisDim, option) {
+    // Default axis with data is category axis
+    return option.type || (option.data ? 'category' : 'value');
 }
 
+axisModelCreator('angle', PolarAxisModel, getAxisType$3, polarAxisDefaultExtendedOption.angle);
+axisModelCreator('radius', PolarAxisModel, getAxisType$3, polarAxisDefaultExtendedOption.radius);
+
 /*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
@@ -72569,389 +73154,206 @@ function makeBackground(rect, componentModel) {
 * under the License.
 */
 
-var curry$4 = curry;
-var each$16 = each$1;
-var Group$3 = Group;
-
-var LegendView = extendComponentView({
+extendComponentModel({
 
-    type: 'legend.plain',
+    type: 'polar',
 
-    newlineDisabled: false,
+    dependencies: ['polarAxis', 'angleAxis'],
 
     /**
-     * @override
+     * @type {module:echarts/coord/polar/Polar}
      */
-    init: function () {
-
-        /**
-         * @private
-         * @type {module:zrender/container/Group}
-         */
-        this.group.add(this._contentGroup = new Group$3());
-
-        /**
-         * @private
-         * @type {module:zrender/Element}
-         */
-        this._backgroundEl;
-
-        /**
-         * If first rendering, `contentGroup.position` is [0, 0], which
-         * does not make sense and may cause unexepcted animation if adopted.
-         * @private
-         * @type {boolean}
-         */
-        this._isFirstRender = true;
-    },
+    coordinateSystem: null,
 
     /**
-     * @protected
+     * @param {string} axisType
+     * @return {module:echarts/coord/polar/AxisModel}
      */
-    getContentGroup: function () {
-        return this._contentGroup;
+    findAxisModel: function (axisType) {
+        var foundAxisModel;
+        var ecModel = this.ecModel;
+
+        ecModel.eachComponent(axisType, function (axisModel) {
+            if (axisModel.getCoordSysModel() === this) {
+                foundAxisModel = axisModel;
+            }
+        }, this);
+        return foundAxisModel;
     },
 
-    /**
-     * @override
-     */
-    render: function (legendModel, ecModel, api) {
-        var isFirstRender = this._isFirstRender;
-        this._isFirstRender = false;
+    defaultOption: {
 
-        this.resetInner();
+        zlevel: 0,
 
-        if (!legendModel.get('show', true)) {
-            return;
-        }
+        z: 0,
 
-        var itemAlign = legendModel.get('align');
-        if (!itemAlign || itemAlign === 'auto') {
-            itemAlign = (
-                legendModel.get('left') === 'right'
-                && legendModel.get('orient') === 'vertical'
-            ) ? 'right' : 'left';
-        }
+        center: ['50%', '50%'],
 
-        this.renderInner(itemAlign, legendModel, ecModel, api);
+        radius: '80%'
+    }
+});
 
-        // Perform layout.
-        var positionInfo = legendModel.getBoxLayoutParams();
-        var viewportSize = {width: api.getWidth(), height: api.getHeight()};
-        var padding = legendModel.get('padding');
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+*
+*   http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
 
-        var maxSize = getLayoutRect(positionInfo, viewportSize, padding);
+// TODO Axis scale
 
-        var mainRect = this.layoutInner(legendModel, itemAlign, maxSize, isFirstRender);
+/**
+ * Resize method bound to the polar
+ * @param {module:echarts/coord/polar/PolarModel} polarModel
+ * @param {module:echarts/ExtensionAPI} api
+ */
+function resizePolar(polar, polarModel, api) {
+    var center = polarModel.get('center');
+    var width = api.getWidth();
+    var height = api.getHeight();
 
-        // Place mainGroup, based on the calculated `mainRect`.
-        var layoutRect = getLayoutRect(
-            defaults({width: mainRect.width, height: mainRect.height}, positionInfo),
-            viewportSize,
-            padding
-        );
-        this.group.attr('position', [layoutRect.x - mainRect.x, layoutRect.y - mainRect.y]);
+    polar.cx = parsePercent$1(center[0], width);
+    polar.cy = parsePercent$1(center[1], height);
 
-        // Render background after group is layout.
-        this.group.add(
-            this._backgroundEl = makeBackground(mainRect, legendModel)
-        );
-    },
-
-    /**
-     * @protected
-     */
-    resetInner: function () {
-        this.getContentGroup().removeAll();
-        this._backgroundEl && this.group.remove(this._backgroundEl);
-    },
+    var radiusAxis = polar.getRadiusAxis();
+    var size = Math.min(width, height) / 2;
+    var radius = parsePercent$1(polarModel.get('radius'), size);
+    radiusAxis.inverse
+        ? radiusAxis.setExtent(radius, 0)
+        : radiusAxis.setExtent(0, radius);
+}
 
-    /**
-     * @protected
-     */
-    renderInner: function (itemAlign, legendModel, ecModel, api) {
-        var contentGroup = this.getContentGroup();
-        var legendDrawnMap = createHashMap();
-        var selectMode = legendModel.get('selectedMode');
+/**
+ * Update polar
+ */
+function updatePolarScale(ecModel, api) {
+    var polar = this;
+    var angleAxis = polar.getAngleAxis();
+    var radiusAxis = polar.getRadiusAxis();
+    // Reset scale
+    angleAxis.scale.setExtent(Infinity, -Infinity);
+    radiusAxis.scale.setExtent(Infinity, -Infinity);
 
-        var excludeSeriesId = [];
-        ecModel.eachRawSeries(function (seriesModel) {
-            !seriesModel.get('legendHoverLink') && excludeSeriesId.push(seriesModel.id);
-        });
+    ecModel.eachSeries(function (seriesModel) {
+        if (seriesModel.coordinateSystem === polar) {
+            var data = seriesModel.getData();
+            each$1(data.mapDimension('radius', true), function (dim) {
+                radiusAxis.scale.unionExtentFromData(
+                    data, getStackedDimension(data, dim)
+                );
+            });
+            each$1(data.mapDimension('angle', true), function (dim) {
+                angleAxis.scale.unionExtentFromData(
+                    data, getStackedDimension(data, dim)
+                );
+            });
+        }
+    });
 
-        each$16(legendModel.getData(), function (itemModel, dataIndex) {
-            var name = itemModel.get('name');
+    niceScaleExtent(angleAxis.scale, angleAxis.model);
+    niceScaleExtent(radiusAxis.scale, radiusAxis.model);
 
-            // Use empty string or \n as a newline string
-            if (!this.newlineDisabled && (name === '' || name === '\n')) {
-                contentGroup.add(new Group$3({
-                    newline: true
-                }));
-                return;
-            }
+    // Fix extent of category angle axis
+    if (angleAxis.type === 'category' && !angleAxis.onBand) {
+        var extent = angleAxis.getExtent();
+        var diff = 360 / angleAxis.scale.count();
+        angleAxis.inverse ? (extent[1] += diff) : (extent[1] -= diff);
+        angleAxis.setExtent(extent[0], extent[1]);
+    }
+}
 
-            // Representitive series.
-            var seriesModel = ecModel.getSeriesByName(name)[0];
+/**
+ * Set common axis properties
+ * @param {module:echarts/coord/polar/AngleAxis|module:echarts/coord/polar/RadiusAxis}
+ * @param {module:echarts/coord/polar/AxisModel}
+ * @inner
+ */
+function setAxis(axis, axisModel) {
+    axis.type = axisModel.get('type');
+    axis.scale = createScaleByModel(axisModel);
+    axis.onBand = axisModel.get('boundaryGap') && axis.type === 'category';
+    axis.inverse = axisModel.get('inverse');
 
-            if (legendDrawnMap.get(name)) {
-                // Have been drawed
-                return;
-            }
+    if (axisModel.mainType === 'angleAxis') {
+        axis.inverse ^= axisModel.get('clockwise');
+        var startAngle = axisModel.get('startAngle');
+        axis.setExtent(startAngle, startAngle + (axis.inverse ? -360 : 360));
+    }
 
-            // Series legend
-            if (seriesModel) {
-                var data = seriesModel.getData();
-                var color = data.getVisual('color');
+    // Inject axis instance
+    axisModel.axis = axis;
+    axis.model = axisModel;
+}
 
-                // If color is a callback function
-                if (typeof color === 'function') {
-                    // Use the first data
-                    color = color(seriesModel.getDataParams(0));
-                }
 
-                // Using rect symbol defaultly
-                var legendSymbolType = data.getVisual('legendSymbol') || 'roundRect';
-                var symbolType = data.getVisual('symbol');
+var polarCreator = {
 
-                var itemGroup = this._createItem(
-                    name, dataIndex, itemModel, legendModel,
-                    legendSymbolType, symbolType,
-                    itemAlign, color,
-                    selectMode
-                );
+    dimensions: Polar.prototype.dimensions,
 
-                itemGroup.on('click', curry$4(dispatchSelectAction, name, api))
-                    .on('mouseover', curry$4(dispatchHighlightAction, seriesModel.name, null, api, excludeSeriesId))
-                    .on('mouseout', curry$4(dispatchDownplayAction, seriesModel.name, null, api, excludeSeriesId));
+    create: function (ecModel, api) {
+        var polarList = [];
+        ecModel.eachComponent('polar', function (polarModel, idx) {
+            var polar = new Polar(idx);
+            // Inject resize and update method
+            polar.update = updatePolarScale;
 
-                legendDrawnMap.set(name, true);
-            }
-            else {
-                // Data legend of pie, funnel
-                ecModel.eachRawSeries(function (seriesModel) {
-                    // In case multiple series has same data name
-                    if (legendDrawnMap.get(name)) {
-                        return;
-                    }
+            var radiusAxis = polar.getRadiusAxis();
+            var angleAxis = polar.getAngleAxis();
 
-                    if (seriesModel.legendDataProvider) {
-                        var data = seriesModel.legendDataProvider();
-                        var idx = data.indexOfName(name);
-                        if (idx < 0) {
-                            return;
-                        }
+            var radiusAxisModel = polarModel.findAxisModel('radiusAxis');
+            var angleAxisModel = polarModel.findAxisModel('angleAxis');
 
-                        var color = data.getItemVisual(idx, 'color');
+            setAxis(radiusAxis, radiusAxisModel);
+            setAxis(angleAxis, angleAxisModel);
 
-                        var legendSymbolType = 'roundRect';
+            resizePolar(polar, polarModel, api);
 
-                        var itemGroup = this._createItem(
-                            name, dataIndex, itemModel, legendModel,
-                            legendSymbolType, null,
-                            itemAlign, color,
-                            selectMode
-                        );
+            polarList.push(polar);
 
-                        // FIXME: consider different series has items with the same name.
-                        itemGroup.on('click', curry$4(dispatchSelectAction, name, api))
-                            // Should not specify the series name, consider legend controls
-                            // more than one pie series.
-                            .on('mouseover', curry$4(dispatchHighlightAction, null, name, api, excludeSeriesId))
-                            .on('mouseout', curry$4(dispatchDownplayAction, null, name, api, excludeSeriesId));
+            polarModel.coordinateSystem = polar;
+            polar.model = polarModel;
+        });
+        // Inject coordinateSystem to series
+        ecModel.eachSeries(function (seriesModel) {
+            if (seriesModel.get('coordinateSystem') === 'polar') {
+                var polarModel = ecModel.queryComponents({
+                    mainType: 'polar',
+                    index: seriesModel.get('polarIndex'),
+                    id: seriesModel.get('polarId')
+                })[0];
 
-                        legendDrawnMap.set(name, true);
+                if (__DEV__) {
+                    if (!polarModel) {
+                        throw new Error(
+                            'Polar "' + retrieve(
+                                seriesModel.get('polarIndex'),
+                                seriesModel.get('polarId'),
+                                0
+                            ) + '" not found'
+                        );
                     }
-
-                }, this);
-            }
-
-            if (__DEV__) {
-                if (!legendDrawnMap.get(name)) {
-                    console.warn(
-                        name + ' series not exists. Legend data should be same with series name or data name.'
-                    );
                 }
+                seriesModel.coordinateSystem = polarModel.coordinateSystem;
             }
-        }, this);
-    },
-
-    _createItem: function (
-        name, dataIndex, itemModel, legendModel,
-        legendSymbolType, symbolType,
-        itemAlign, color, selectMode
-    ) {
-        var itemWidth = legendModel.get('itemWidth');
-        var itemHeight = legendModel.get('itemHeight');
-        var inactiveColor = legendModel.get('inactiveColor');
-        var symbolKeepAspect = legendModel.get('symbolKeepAspect');
-
-        var isSelected = legendModel.isSelected(name);
-        var itemGroup = new Group$3();
-
-        var textStyleModel = itemModel.getModel('textStyle');
-
-        var itemIcon = itemModel.get('icon');
-
-        var tooltipModel = itemModel.getModel('tooltip');
-        var legendGlobalTooltipModel = tooltipModel.parentModel;
-
-        // Use user given icon first
-        legendSymbolType = itemIcon || legendSymbolType;
-        itemGroup.add(createSymbol(
-            legendSymbolType,
-            0,
-            0,
-            itemWidth,
-            itemHeight,
-            isSelected ? color : inactiveColor,
-            // symbolKeepAspect default true for legend
-            symbolKeepAspect == null ? true : symbolKeepAspect
-        ));
-
-        // Compose symbols
-        // PENDING
-        if (!itemIcon && symbolType
-            // At least show one symbol, can't be all none
-            && ((symbolType !== legendSymbolType) || symbolType === 'none')
-        ) {
-            var size = itemHeight * 0.8;
-            if (symbolType === 'none') {
-                symbolType = 'circle';
-            }
-            // Put symbol in the center
-            itemGroup.add(createSymbol(
-                symbolType,
-                (itemWidth - size) / 2,
-                (itemHeight - size) / 2,
-                size,
-                size,
-                isSelected ? color : inactiveColor,
-                // symbolKeepAspect default true for legend
-                symbolKeepAspect == null ? true : symbolKeepAspect
-            ));
-        }
-
-        var textX = itemAlign === 'left' ? itemWidth + 5 : -5;
-        var textAlign = itemAlign;
-
-        var formatter = legendModel.get('formatter');
-        var content = name;
-        if (typeof formatter === 'string' && formatter) {
-            content = formatter.replace('{name}', name != null ? name : '');
-        }
-        else if (typeof formatter === 'function') {
-            content = formatter(name);
-        }
-
-        itemGroup.add(new Text({
-            style: setTextStyle({}, textStyleModel, {
-                text: content,
-                x: textX,
-                y: itemHeight / 2,
-                textFill: isSelected ? textStyleModel.getTextColor() : inactiveColor,
-                textAlign: textAlign,
-                textVerticalAlign: 'middle'
-            })
-        }));
-
-        // Add a invisible rect to increase the area of mouse hover
-        var hitRect = new Rect({
-            shape: itemGroup.getBoundingRect(),
-            invisible: true,
-            tooltip: tooltipModel.get('show') ? extend({
-                content: name,
-                // Defaul formatter
-                formatter: legendGlobalTooltipModel.get('formatter', true) || function () {
-                    return name;
-                },
-                formatterParams: {
-                    componentType: 'legend',
-                    legendIndex: legendModel.componentIndex,
-                    name: name,
-                    $vars: ['name']
-                }
-            }, tooltipModel.option) : null
-        });
-        itemGroup.add(hitRect);
-
-        itemGroup.eachChild(function (child) {
-            child.silent = true;
         });
 
-        hitRect.silent = !selectMode;
-
-        this.getContentGroup().add(itemGroup);
-
-        setHoverStyle(itemGroup);
-
-        itemGroup.__legendDataIndex = dataIndex;
-
-        return itemGroup;
-    },
-
-    /**
-     * @protected
-     */
-    layoutInner: function (legendModel, itemAlign, maxSize) {
-        var contentGroup = this.getContentGroup();
-
-        // Place items in contentGroup.
-        box(
-            legendModel.get('orient'),
-            contentGroup,
-            legendModel.get('itemGap'),
-            maxSize.width,
-            maxSize.height
-        );
-
-        var contentRect = contentGroup.getBoundingRect();
-        contentGroup.attr('position', [-contentRect.x, -contentRect.y]);
-
-        return this.group.getBoundingRect();
-    },
-
-    /**
-     * @protected
-     */
-    remove: function () {
-        this.getContentGroup().removeAll();
-        this._isFirstRender = true;
-    }
-
-});
-
-function dispatchSelectAction(name, api) {
-    api.dispatchAction({
-        type: 'legendToggleSelect',
-        name: name
-    });
-}
-
-function dispatchHighlightAction(seriesName, dataName, api, excludeSeriesId) {
-    // If element hover will move to a hoverLayer.
-    var el = api.getZr().storage.getDisplayList()[0];
-    if (!(el && el.useHoverLayer)) {
-        api.dispatchAction({
-            type: 'highlight',
-            seriesName: seriesName,
-            name: dataName,
-            excludeSeriesId: excludeSeriesId
-        });
+        return polarList;
     }
-}
+};
 
-function dispatchDownplayAction(seriesName, dataName, api, excludeSeriesId) {
-    // If element hover will move to a hoverLayer.
-    var el = api.getZr().storage.getDisplayList()[0];
-    if (!(el && el.useHoverLayer)) {
-        api.dispatchAction({
-            type: 'downplay',
-            seriesName: seriesName,
-            name: dataName,
-            excludeSeriesId: excludeSeriesId
-        });
-    }
-}
+CoordinateSystemManager.register('polar', polarCreator);
 
 /*
 * Licensed to the Apache Software Foundation (ASF) under one
@@ -72972,143 +73374,282 @@ function dispatchDownplayAction(seriesName, dataName, api, excludeSeriesId) {
 * under the License.
 */
 
-var legendFilter = function (ecModel) {
-
-    var legendModels = ecModel.findComponents({
-        mainType: 'legend'
-    });
-    if (legendModels && legendModels.length) {
-        ecModel.filterSeries(function (series) {
-            // If in any legend component the status is not selected.
-            // Because in legend series is assumed selected when it is not in the legend data.
-            for (var i = 0; i < legendModels.length; i++) {
-                if (!legendModels[i].isSelected(series.name)) {
-                    return false;
-                }
-            }
-            return true;
-        });
-    }
+var elementList$1 = ['axisLine', 'axisLabel', 'axisTick', 'splitLine', 'splitArea'];
 
-};
+function getAxisLineShape(polar, rExtent, angle) {
+    rExtent[1] > rExtent[0] && (rExtent = rExtent.slice().reverse());
+    var start = polar.coordToPoint([rExtent[0], angle]);
+    var end = polar.coordToPoint([rExtent[1], angle]);
 
-/*
-* Licensed to the Apache Software Foundation (ASF) under one
-* or more contributor license agreements.  See the NOTICE file
-* distributed with this work for additional information
-* regarding copyright ownership.  The ASF licenses this file
-* to you under the Apache License, Version 2.0 (the
-* "License"); you may not use this file except in compliance
-* with the License.  You may obtain a copy of the License at
-*
-*   http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an
-* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-* KIND, either express or implied.  See the License for the
-* specific language governing permissions and limitations
-* under the License.
-*/
+    return {
+        x1: start[0],
+        y1: start[1],
+        x2: end[0],
+        y2: end[1]
+    };
+}
 
+function getRadiusIdx(polar) {
+    var radiusAxis = polar.getRadiusAxis();
+    return radiusAxis.inverse ? 0 : 1;
+}
 
-// Do not contain scrollable legend, for sake of file size.
+// Remove the last tick which will overlap the first tick
+function fixAngleOverlap(list) {
+    var firstItem = list[0];
+    var lastItem = list[list.length - 1];
+    if (firstItem
+        && lastItem
+        && Math.abs(Math.abs(firstItem.coord - lastItem.coord) - 360) < 1e-4
+    ) {
+        list.pop();
+    }
+}
 
-// Series Filter
-registerProcessor(legendFilter);
+AxisView.extend({
 
-ComponentModel.registerSubTypeDefaulter('legend', function () {
-    // Default 'plain' when no type specified.
-    return 'plain';
-});
+    type: 'angleAxis',
 
-/*
-* Licensed to the Apache Software Foundation (ASF) under one
-* or more contributor license agreements.  See the NOTICE file
-* distributed with this work for additional information
-* regarding copyright ownership.  The ASF licenses this file
-* to you under the Apache License, Version 2.0 (the
-* "License"); you may not use this file except in compliance
-* with the License.  You may obtain a copy of the License at
-*
-*   http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an
-* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-* KIND, either express or implied.  See the License for the
-* specific language governing permissions and limitations
-* under the License.
-*/
+    axisPointerClass: 'PolarAxisPointer',
 
-var ScrollableLegendModel = LegendModel.extend({
+    render: function (angleAxisModel, ecModel) {
+        this.group.removeAll();
+        if (!angleAxisModel.get('show')) {
+            return;
+        }
 
-    type: 'legend.scroll',
+        var angleAxis = angleAxisModel.axis;
+        var polar = angleAxis.polar;
+        var radiusExtent = polar.getRadiusAxis().getExtent();
 
-    /**
-     * @param {number} scrollDataIndex
-     */
-    setScrollDataIndex: function (scrollDataIndex) {
-        this.option.scrollDataIndex = scrollDataIndex;
-    },
+        var ticksAngles = angleAxis.getTicksCoords();
+        var labels = map(angleAxis.getViewLabels(), function (labelItem) {
+            var labelItem = clone(labelItem);
+            labelItem.coord = angleAxis.dataToCoord(labelItem.tickValue);
+            return labelItem;
+        });
 
-    defaultOption: {
-        scrollDataIndex: 0,
-        pageButtonItemGap: 5,
-        pageButtonGap: null,
-        pageButtonPosition: 'end', // 'start' or 'end'
-        pageFormatter: '{current}/{total}', // If null/undefined, do not show page.
-        pageIcons: {
-            horizontal: ['M0,0L12,-10L12,10z', 'M0,0L-12,-10L-12,10z'],
-            vertical: ['M0,0L20,0L10,-20z', 'M0,0L20,0L10,20z']
-        },
-        pageIconColor: '#2f4554',
-        pageIconInactiveColor: '#aaa',
-        pageIconSize: 15, // Can be [10, 3], which represents [width, height]
-        pageTextStyle: {
-            color: '#333'
-        },
+        fixAngleOverlap(labels);
+        fixAngleOverlap(ticksAngles);
 
-        animationDurationUpdate: 800
+        each$1(elementList$1, function (name) {
+            if (angleAxisModel.get(name + '.show')
+                && (!angleAxis.scale.isBlank() || name === 'axisLine')
+            ) {
+                this['_' + name](angleAxisModel, polar, ticksAngles, radiusExtent, labels);
+            }
+        }, this);
     },
 
     /**
-     * @override
+     * @private
      */
-    init: function (option, parentModel, ecModel, extraOpt) {
-        var inputPositionParams = getLayoutParams(option);
+    _axisLine: function (angleAxisModel, polar, ticksAngles, radiusExtent) {
+        var lineStyleModel = angleAxisModel.getModel('axisLine.lineStyle');
 
-        ScrollableLegendModel.superCall(this, 'init', option, parentModel, ecModel, extraOpt);
+        var circle = new Circle({
+            shape: {
+                cx: polar.cx,
+                cy: polar.cy,
+                r: radiusExtent[getRadiusIdx(polar)]
+            },
+            style: lineStyleModel.getLineStyle(),
+            z2: 1,
+            silent: true
+        });
+        circle.style.fill = null;
 
-        mergeAndNormalizeLayoutParams(this, option, inputPositionParams);
+        this.group.add(circle);
     },
 
     /**
-     * @override
+     * @private
      */
-    mergeOption: function (option, extraOpt) {
-        ScrollableLegendModel.superCall(this, 'mergeOption', option, extraOpt);
+    _axisTick: function (angleAxisModel, polar, ticksAngles, radiusExtent) {
+        var tickModel = angleAxisModel.getModel('axisTick');
+
+        var tickLen = (tickModel.get('inside') ? -1 : 1) * tickModel.get('length');
+        var radius = radiusExtent[getRadiusIdx(polar)];
 
-        mergeAndNormalizeLayoutParams(this, this.option, option);
+        var lines = map(ticksAngles, function (tickAngleItem) {
+            return new Line({
+                shape: getAxisLineShape(polar, [radius, radius + tickLen], tickAngleItem.coord)
+            });
+        });
+        this.group.add(mergePath(
+            lines, {
+                style: defaults(
+                    tickModel.getModel('lineStyle').getLineStyle(),
+                    {
+                        stroke: angleAxisModel.get('axisLine.lineStyle.color')
+                    }
+                )
+            }
+        ));
     },
 
-    getOrient: function () {
-        return this.get('orient') === 'vertical'
-            ? {index: 1, name: 'vertical'}
-            : {index: 0, name: 'horizontal'};
-    }
+    /**
+     * @private
+     */
+    _axisLabel: function (angleAxisModel, polar, ticksAngles, radiusExtent, labels) {
+        var rawCategoryData = angleAxisModel.getCategories(true);
+
+        var commonLabelModel = angleAxisModel.getModel('axisLabel');
+
+        var labelMargin = commonLabelModel.get('margin');
+        var triggerEvent = angleAxisModel.get('triggerEvent');
+
+        // Use length of ticksAngles because it may remove the last tick to avoid overlapping
+        each$1(labels, function (labelItem, idx) {
+            var labelModel = commonLabelModel;
+            var tickValue = labelItem.tickValue;
+
+            var r = radiusExtent[getRadiusIdx(polar)];
+            var p = polar.coordToPoint([r + labelMargin, labelItem.coord]);
+            var cx = polar.cx;
+            var cy = polar.cy;
+
+            var labelTextAlign = Math.abs(p[0] - cx) / r < 0.3
+                ? 'center' : (p[0] > cx ? 'left' : 'right');
+            var labelTextVerticalAlign = Math.abs(p[1] - cy) / r < 0.3
+                ? 'middle' : (p[1] > cy ? 'top' : 'bottom');
+
+            if (rawCategoryData && rawCategoryData[tickValue] && rawCategoryData[tickValue].textStyle) {
+                labelModel = new Model(
+                    rawCategoryData[tickValue].textStyle, commonLabelModel, commonLabelModel.ecModel
+                );
+            }
+
+            var textEl = new Text({
+                silent: AxisBuilder.isLabelSilent(angleAxisModel)
+            });
+            this.group.add(textEl);
+            setTextStyle(textEl.style, labelModel, {
+                x: p[0],
+                y: p[1],
+                textFill: labelModel.getTextColor() || angleAxisModel.get('axisLine.lineStyle.color'),
+                text: labelItem.formattedLabel,
+                textAlign: labelTextAlign,
+                textVerticalAlign: labelTextVerticalAlign
+            });
+
+            // Pack data for mouse event
+            if (triggerEvent) {
+                textEl.eventData = AxisBuilder.makeAxisEventDataBase(angleAxisModel);
+                textEl.eventData.targetType = 'axisLabel';
+                textEl.eventData.value = labelItem.rawLabel;
+            }
+
+        }, this);
+    },
+
+    /**
+     * @private
+     */
+    _splitLine: function (angleAxisModel, polar, ticksAngles, radiusExtent) {
+        var splitLineModel = angleAxisModel.getModel('splitLine');
+        var lineStyleModel = splitLineModel.getModel('lineStyle');
+        var lineColors = lineStyleModel.get('color');
+        var lineCount = 0;
+
+        lineColors = lineColors instanceof Array ? lineColors : [lineColors];
+
+        var splitLines = [];
+
+        for (var i = 0; i < ticksAngles.length; i++) {
+            var colorIndex = (lineCount++) % lineColors.length;
+            splitLines[colorIndex] = splitLines[colorIndex] || [];
+            splitLines[colorIndex].push(new Line({
+                shape: getAxisLineShape(polar, radiusExtent, ticksAngles[i].coord)
+            }));
+        }
+
+        // Simple optimization
+        // Batching the lines if color are the same
+        for (var i = 0; i < splitLines.length; i++) {
+            this.group.add(mergePath(splitLines[i], {
+                style: defaults({
+                    stroke: lineColors[i % lineColors.length]
+                }, lineStyleModel.getLineStyle()),
+                silent: true,
+                z: angleAxisModel.get('z')
+            }));
+        }
+    },
+
+    /**
+     * @private
+     */
+    _splitArea: function (angleAxisModel, polar, ticksAngles, radiusExtent) {
+        if (!ticksAngles.length) {
+            return;
+        }
+
+        var splitAreaModel = angleAxisModel.getModel('splitArea');
+        var areaStyleModel = splitAreaModel.getModel('areaStyle');
+        var areaColors = areaStyleModel.get('color');
+        var lineCount = 0;
+
+        areaColors = areaColors instanceof Array ? areaColors : [areaColors];
+
+        var splitAreas = [];
+
+        var RADIAN = Math.PI / 180;
+        var prevAngle = -ticksAngles[0].coord * RADIAN;
+        var r0 = Math.min(radiusExtent[0], radiusExtent[1]);
+        var r1 = Math.max(radiusExtent[0], radiusExtent[1]);
+
+        var clockwise = angleAxisModel.get('clockwise');
+
+        for (var i = 1; i < ticksAngles.length; i++) {
+            var colorIndex = (lineCount++) % areaColors.length;
+            splitAreas[colorIndex] = splitAreas[colorIndex] || [];
+            splitAreas[colorIndex].push(new Sector({
+                shape: {
+                    cx: polar.cx,
+                    cy: polar.cy,
+                    r0: r0,
+                    r: r1,
+                    startAngle: prevAngle,
+                    endAngle: -ticksAngles[i].coord * RADIAN,
+                    clockwise: clockwise
+                },
+                silent: true
+            }));
+            prevAngle = -ticksAngles[i].coord * RADIAN;
+        }
 
+        // Simple optimization
+        // Batching the lines if color are the same
+        for (var i = 0; i < splitAreas.length; i++) {
+            this.group.add(mergePath(splitAreas[i], {
+                style: defaults({
+                    fill: areaColors[i % areaColors.length]
+                }, areaStyleModel.getAreaStyle()),
+                silent: true
+            }));
+        }
+    }
 });
 
-// Do not `ignoreSize` to enable setting {left: 10, right: 10}.
-function mergeAndNormalizeLayoutParams(legendModel, target, raw) {
-    var orient = legendModel.getOrient();
-    var ignoreSize = [1, 1];
-    ignoreSize[orient.index] = 0;
-    mergeLayoutParam(target, raw, {
-        type: 'box', ignoreSize: ignoreSize
-    });
-}
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+*
+*   http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
 
 /*
 * Licensed to the Apache Software Foundation (ASF) under one
@@ -73129,413 +73670,314 @@ function mergeAndNormalizeLayoutParams(legendModel, target, raw) {
 * under the License.
 */
 
-/**
- * Separate legend and scrollable legend to reduce package size.
- */
+var axisBuilderAttrs$3 = [
+    'axisLine', 'axisTickLabel', 'axisName'
+];
+var selfBuilderAttrs$1 = [
+    'splitLine', 'splitArea'
+];
 
-var Group$4 = Group;
+AxisView.extend({
 
-var WH$1 = ['width', 'height'];
-var XY$1 = ['x', 'y'];
+    type: 'radiusAxis',
 
-var ScrollableLegendView = LegendView.extend({
+    axisPointerClass: 'PolarAxisPointer',
 
-    type: 'legend.scroll',
+    render: function (radiusAxisModel, ecModel) {
+        this.group.removeAll();
+        if (!radiusAxisModel.get('show')) {
+            return;
+        }
+        var radiusAxis = radiusAxisModel.axis;
+        var polar = radiusAxis.polar;
+        var angleAxis = polar.getAngleAxis();
+        var ticksCoords = radiusAxis.getTicksCoords();
+        var axisAngle = angleAxis.getExtent()[0];
+        var radiusExtent = radiusAxis.getExtent();
 
-    newlineDisabled: true,
+        var layout = layoutAxis(polar, radiusAxisModel, axisAngle);
+        var axisBuilder = new AxisBuilder(radiusAxisModel, layout);
+        each$1(axisBuilderAttrs$3, axisBuilder.add, axisBuilder);
+        this.group.add(axisBuilder.getGroup());
 
-    init: function () {
+        each$1(selfBuilderAttrs$1, function (name) {
+            if (radiusAxisModel.get(name + '.show') && !radiusAxis.scale.isBlank()) {
+                this['_' + name](radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords);
+            }
+        }, this);
+    },
 
-        ScrollableLegendView.superCall(this, 'init');
+    /**
+     * @private
+     */
+    _splitLine: function (radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) {
+        var splitLineModel = radiusAxisModel.getModel('splitLine');
+        var lineStyleModel = splitLineModel.getModel('lineStyle');
+        var lineColors = lineStyleModel.get('color');
+        var lineCount = 0;
 
-        /**
-         * @private
-         * @type {number} For `scroll`.
-         */
-        this._currentIndex = 0;
+        lineColors = lineColors instanceof Array ? lineColors : [lineColors];
 
-        /**
-         * @private
-         * @type {module:zrender/container/Group}
-         */
-        this.group.add(this._containerGroup = new Group$4());
-        this._containerGroup.add(this.getContentGroup());
+        var splitLines = [];
 
-        /**
-         * @private
-         * @type {module:zrender/container/Group}
-         */
-        this.group.add(this._controllerGroup = new Group$4());
+        for (var i = 0; i < ticksCoords.length; i++) {
+            var colorIndex = (lineCount++) % lineColors.length;
+            splitLines[colorIndex] = splitLines[colorIndex] || [];
+            splitLines[colorIndex].push(new Circle({
+                shape: {
+                    cx: polar.cx,
+                    cy: polar.cy,
+                    r: ticksCoords[i].coord
+                },
+                silent: true
+            }));
+        }
 
-        /**
-         *
-         * @private
-         */
-        this._showController;
+        // Simple optimization
+        // Batching the lines if color are the same
+        for (var i = 0; i < splitLines.length; i++) {
+            this.group.add(mergePath(splitLines[i], {
+                style: defaults({
+                    stroke: lineColors[i % lineColors.length],
+                    fill: null
+                }, lineStyleModel.getLineStyle()),
+                silent: true
+            }));
+        }
     },
 
     /**
-     * @override
+     * @private
      */
-    resetInner: function () {
-        ScrollableLegendView.superCall(this, 'resetInner');
+    _splitArea: function (radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) {
+        if (!ticksCoords.length) {
+            return;
+        }
 
-        this._controllerGroup.removeAll();
-        this._containerGroup.removeClipPath();
-        this._containerGroup.__rectSize = null;
-    },
+        var splitAreaModel = radiusAxisModel.getModel('splitArea');
+        var areaStyleModel = splitAreaModel.getModel('areaStyle');
+        var areaColors = areaStyleModel.get('color');
+        var lineCount = 0;
 
-    /**
-     * @override
-     */
-    renderInner: function (itemAlign, legendModel, ecModel, api) {
-        var me = this;
+        areaColors = areaColors instanceof Array ? areaColors : [areaColors];
 
-        // Render content items.
-        ScrollableLegendView.superCall(this, 'renderInner', itemAlign, legendModel, ecModel, api);
+        var splitAreas = [];
 
-        var controllerGroup = this._controllerGroup;
+        var prevRadius = ticksCoords[0].coord;
+        for (var i = 1; i < ticksCoords.length; i++) {
+            var colorIndex = (lineCount++) % areaColors.length;
+            splitAreas[colorIndex] = splitAreas[colorIndex] || [];
+            splitAreas[colorIndex].push(new Sector({
+                shape: {
+                    cx: polar.cx,
+                    cy: polar.cy,
+                    r0: prevRadius,
+                    r: ticksCoords[i].coord,
+                    startAngle: 0,
+                    endAngle: Math.PI * 2
+                },
+                silent: true
+            }));
+            prevRadius = ticksCoords[i].coord;
+        }
 
-        // FIXME: support be 'auto' adapt to size number text length,
-        // e.g., '3/12345' should not overlap with the control arrow button.
-        var pageIconSize = legendModel.get('pageIconSize', true);
-        if (!isArray(pageIconSize)) {
-            pageIconSize = [pageIconSize, pageIconSize];
+        // Simple optimization
+        // Batching the lines if color are the same
+        for (var i = 0; i < splitAreas.length; i++) {
+            this.group.add(mergePath(splitAreas[i], {
+                style: defaults({
+                    fill: areaColors[i % areaColors.length]
+                }, areaStyleModel.getAreaStyle()),
+                silent: true
+            }));
         }
+    }
+});
 
-        createPageButton('pagePrev', 0);
+/**
+ * @inner
+ */
+function layoutAxis(polar, radiusAxisModel, axisAngle) {
+    return {
+        position: [polar.cx, polar.cy],
+        rotation: axisAngle / 180 * Math.PI,
+        labelDirection: -1,
+        tickDirection: -1,
+        nameDirection: 1,
+        labelRotate: radiusAxisModel.getModel('axisLabel').get('rotate'),
+        // Over splitLine and splitArea
+        z2: 1
+    };
+}
 
-        var pageTextStyleModel = legendModel.getModel('pageTextStyle');
-        controllerGroup.add(new Text({
-            name: 'pageText',
-            style: {
-                textFill: pageTextStyleModel.getTextColor(),
-                font: pageTextStyleModel.getFont(),
-                textVerticalAlign: 'middle',
-                textAlign: 'center'
-            },
-            silent: true
-        }));
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+*
+*   http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
 
-        createPageButton('pageNext', 1);
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements.  See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership.  The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License.  You may obtain a copy of the License at
+*
+*   http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied.  See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
 
-        function createPageButton(name, iconIdx) {
-            var pageDataIndexName = name + 'DataIndex';
-            var icon = createIcon(
-                legendModel.get('pageIcons', true)[legendModel.getOrient().name][iconIdx],
-                {
-                    // Buttons will be created in each render, so we do not need
-                    // to worry about avoiding using legendModel kept in scope.
-                    onclick: bind(
-                        me._pageGo, me, pageDataIndexName, legendModel, api
-                    )
-                },
-                {
-                    x: -pageIconSize[0] / 2,
-                    y: -pageIconSize[1] / 2,
-                    width: pageIconSize[0],
-                    height: pageIconSize[1]
-                }
-            );
-            icon.name = name;
-            controllerGroup.add(icon);
-        }
-    },
+var PolarAxisPointer = BaseAxisPointer.extend({
 
     /**
      * @override
      */
-    layoutInner: function (legendModel, itemAlign, maxSize, isFirstRender) {
-        var contentGroup = this.getContentGroup();
-        var containerGroup = this._containerGroup;
-        var controllerGroup = this._controllerGroup;
-
-        var orientIdx = legendModel.getOrient().index;
-        var wh = WH$1[orientIdx];
-        var hw = WH$1[1 - orientIdx];
-        var yx = XY$1[1 - orientIdx];
+    makeElOption: function (elOption, value, axisModel, axisPointerModel, api) {
+        var axis = axisModel.axis;
 
-        // Place items in contentGroup.
-        box(
-            legendModel.get('orient'),
-            contentGroup,
-            legendModel.get('itemGap'),
-            !orientIdx ? null : maxSize.width,
-            orientIdx ? null : maxSize.height
-        );
+        if (axis.dim === 'angle') {
+            this.animationThreshold = Math.PI / 18;
+        }
 
-        box(
-            // Buttons in controller are layout always horizontally.
-            'horizontal',
-            controllerGroup,
-            legendModel.get('pageButtonItemGap', true)
-        );
+        var polar = axis.polar;
+        var otherAxis = polar.getOtherAxis(axis);
+        var otherExtent = otherAxis.getExtent();
 
-        var contentRect = contentGroup.getBoundingRect();
-        var controllerRect = controllerGroup.getBoundingRect();
-        var showController = this._showController = contentRect[wh] > maxSize[wh];
+        var coordValue;
+        coordValue = axis['dataTo' + capitalFirst(axis.dim)](value);
 
-        var contentPos = [-contentRect.x, -contentRect.y];
-        // Remain contentPos when scroll animation perfroming.
-        // If first rendering, `contentGroup.position` is [0, 0], which
-        // does not make sense and may cause unexepcted animation if adopted.
-        if (!isFirstRender) {
-            contentPos[orientIdx] = contentGroup.position[orientIdx];
+        var axisPointerType = axisPointerModel.get('type');
+        if (axisPointerType && axisPointerType !== 'none') {
+            var elStyle = buildElStyle(axisPointerModel);
+            var pointerOption = pointerShapeBuilder$2[axisPointerType](
+                axis, polar, coordValue, otherExtent, elStyle
+            );
+            pointerOption.style = elStyle;
+            elOption.graphicKey = pointerOption.type;
+            elOption.pointer = pointerOption;
         }
 
-        // Layout container group based on 0.
-        var containerPos = [0, 0];
... 33064 lines suppressed ...


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org