You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by ov...@apache.org on 2020/04/23 02:41:16 UTC
[incubator-echarts-doc] branch master updated: fix: add zoom and
center in series graph
This is an automated email from the ASF dual-hosted git repository.
ovilia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git
The following commit(s) were added to refs/heads/master by this push:
new 8d001e8 fix: add zoom and center in series graph
8d001e8 is described below
commit 8d001e86a2190b9ebdc2f344a7820a563ed9299a
Author: Ovilia <zw...@gmail.com>
AuthorDate: Thu Apr 23 10:40:16 2020 +0800
fix: add zoom and center in series graph
---
en/option/series/graph.md | 11 +++++++++++
zh/option/series/graph.md | 11 +++++++++++
2 files changed, 22 insertions(+)
diff --git a/en/option/series/graph.md b/en/option/series/graph.md
index 4d1d786..955b67b 100644
--- a/en/option/series/graph.md
+++ b/en/option/series/graph.md
@@ -32,6 +32,17 @@ Graph is a diagram to represent [nodes](~series-graph.nodes) and the [links](~se
## hoverAnimation(boolean)
Whether to enable the highlight animation effect of mousr hover node.
+## center(Array)
+Center of current view-port.
+
+Example:
+```js
+center: [115.97, 29.71]
+```
+
+## zoom(number) = 1
+Zoom rate of current view-port.
+
## layout(string) = 'none'
Graph layout.
diff --git a/zh/option/series/graph.md b/zh/option/series/graph.md
index d5977da..c53df35 100644
--- a/zh/option/series/graph.md
+++ b/zh/option/series/graph.md
@@ -32,6 +32,17 @@
## hoverAnimation(boolean)
是否开启鼠标 hover 节点的提示动画效果。
+## center(Array)
+当前视角的中心点
+
+例如:
+```js
+center: [115.97, 29.71]
+```
+
+## zoom(number) = 1
+当前视角的缩放比例。
+
## layout(string) = 'none'
图的布局。
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org