You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/08/31 05:29:56 UTC

[echarts-handbook] branch master updated: update posts

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

shenyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-handbook.git


The following commit(s) were added to refs/heads/master by this push:
     new 712d458  update posts
712d458 is described below

commit 712d45824cb5002c85e50bf71c55c2d89c7858bd
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Aug 31 13:29:49 2021 +0800

    update posts
---
 contents/en/application/data/dynamic-data.md | 4 ++--
 contents/en/meta/edit-guide.md               | 9 +++++++++
 contents/zh/application/data/dynamic-data.md | 4 ++--
 contents/zh/meta/edit-guide.md               | 9 +++++++++
 4 files changed, 22 insertions(+), 4 deletions(-)

diff --git a/contents/en/application/data/dynamic-data.md b/contents/en/application/data/dynamic-data.md
index 7529b11..fef1513 100644
--- a/contents/en/application/data/dynamic-data.md
+++ b/contents/en/application/data/dynamic-data.md
@@ -88,7 +88,7 @@ You need to use `name` to "navigate" ECharts when updating data. In the previous
 
 When it takes a long time to load the data, the user is facing the empty chart with only axes will wonder if there are bugs appear.
 
-ECharts have a simple loading animation by default. You can call [showLoading](api.html#echartsInstance.showLoading) to display. When the data loading was completed, call [hideLoading](api.html#echartsInstance.hideLoading) to hide the animation.
+ECharts have a simple loading animation by default. You can call [showLoading](${mainSitePath}/api.html#echartsInstance.showLoading) to display. When the data loading was completed, call [hideLoading](${mainSitePath}/api.html#echartsInstance.hideLoading) to hide the animation.
 
 ```js
 myChart.showLoading();
@@ -106,7 +106,7 @@ Here is the effect:
 
 ECharts was driven by data, change in data will drive changes in the presentation of the chart. Therefore, It's surprisingly simple to implement a dynamic update.
 
-All data's update was implemented by [setOption](~api.html#echartsInstance.setOption). You only need to fetch the data periodically. ECharts will find the difference between two groups of data to use the proper way to choose the animation.
+All data's update was implemented by [setOption](${mainSitePath}/api.html#echartsInstance.setOption). You only need to fetch the data periodically. ECharts will find the difference between two groups of data to use the proper way to choose the animation.
 
 Check the following example.
 
diff --git a/contents/en/meta/edit-guide.md b/contents/en/meta/edit-guide.md
index 2ee6686..9e2dad4 100644
--- a/contents/en/meta/edit-guide.md
+++ b/contents/en/meta/edit-guide.md
@@ -25,6 +25,7 @@ If you find blocks of code that are not formatted, check first for syntax errors
 - `mainSitePath`
 - `exampleViewPath`
 - `exampleEditorPath`
+- `lang`
 
 Usage:
 
@@ -32,6 +33,14 @@ Usage:
 ${xxxxx}
 ```
 
+## Link to Other Articles
+
+```markdown
+[Get Apache ECharts](${lang}/basics/download)
+```
+
+[Get Apache ECharts](${lang}/basics/download)
+
 ## Embedding Code
 
 ### Basic Usage
diff --git a/contents/zh/application/data/dynamic-data.md b/contents/zh/application/data/dynamic-data.md
index 7b706e3..306cd02 100644
--- a/contents/zh/application/data/dynamic-data.md
+++ b/contents/zh/application/data/dynamic-data.md
@@ -88,7 +88,7 @@ ECharts 中在更新数据的时候需要通过`name`属性对应到相应的系
 
 如果数据加载时间较长,一个空的坐标轴放在画布上也会让用户觉得是不是产生 bug 了,因此需要一个 loading 的动画来提示用户数据正在加载。
 
-ECharts 默认有提供了一个简单的加载动画。只需要调用 [showLoading](api.html#echartsInstance.showLoading) 方法显示。数据加载完成后再调用 [hideLoading](api.html#echartsInstance.hideLoading) 方法隐藏加载动画。
+ECharts 默认有提供了一个简单的加载动画。只需要调用 [showLoading](${mainSitePath}/api.html#echartsInstance.showLoading) 方法显示。数据加载完成后再调用 [hideLoading](${mainSitePath}/api.html#echartsInstance.hideLoading) 方法隐藏加载动画。
 
 ```js
 myChart.showLoading();
@@ -106,7 +106,7 @@ $.get('data.json').done(function (data) {
 
 ECharts 由数据驱动,数据的改变驱动图表展现的改变,因此动态数据的实现也变得异常简单。
 
-所有数据的更新都通过 [setOption](~api.html#echartsInstance.setOption)实现,你只需要定时获取数据,[setOption](~api.html#echartsInstance.setOption) 填入数据,而不用考虑数据到底产生了那些变化,ECharts 会找到两组数据之间的差异然后通过合适的动画去表现数据的变化。
+所有数据的更新都通过 [setOption](${mainSitePath}/api.html#echartsInstance.setOption)实现,你只需要定时获取数据,[setOption](~api.html#echartsInstance.setOption) 填入数据,而不用考虑数据到底产生了那些变化,ECharts 会找到两组数据之间的差异然后通过合适的动画去表现数据的变化。
 
 具体可以看下面示例:
 
diff --git a/contents/zh/meta/edit-guide.md b/contents/zh/meta/edit-guide.md
index f37dbe8..8175632 100644
--- a/contents/zh/meta/edit-guide.md
+++ b/contents/zh/meta/edit-guide.md
@@ -25,6 +25,7 @@ markdown 文件名称小写。
 - `mainSitePath`
 - `exampleViewPath`
 - `exampleEditorPath`
+- `lang`
 
 使用方式:
 
@@ -32,6 +33,14 @@ markdown 文件名称小写。
 ${xxxxx}
 ```
 
+## 引用其它文章
+
+```markdown
+[获取 Apache ECharts](${lang}/basics/download)
+```
+
+[获取 Apache ECharts](${lang}/basics/download)
+
 ## 引用代码
 
 ### 基础使用

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