You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2022/08/17 04:52:04 UTC
[echarts-doc] branch master updated: fix some typos and update links
This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-doc.git
The following commit(s) were added to refs/heads/master by this push:
new a884baa8 fix some typos and update links
a884baa8 is described below
commit a884baa8c35c46f6193f1d4f626ddf136f70b349
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Wed Aug 17 12:49:57 2022 +0800
fix some typos and update links
---
en/option/partial/2d-data.md | 8 ++++----
zh/option/partial/2d-data.md | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/en/option/partial/2d-data.md b/en/option/partial/2d-data.md
index 580cb18f..0a0331e6 100644
--- a/en/option/partial/2d-data.md
+++ b/en/option/partial/2d-data.md
@@ -76,7 +76,7 @@ series: [{
```
+ In [cartesian (grid)](~grid), "dimX" and "dimY" correspond to [xAxis](~xAxis) and [yAxis](~yAxis) respectively.
-+ In [polar](~polar) "dimX" and "dimY" correspond to [radiusAxis](~radiusAxis) and [angleAxis](~anbleAxis) respectively.
++ In [polar](~polar) "dimX" and "dimY" correspond to [radiusAxis](~radiusAxis) and [angleAxis](~angleAxis) respectively.
+ Other dimensions are optional, which can be used in other places. For example:
+ [visualMap](~visualMap) can map one or more dimensions to visual (color, symbol size ...).
+ [series.symbolSize](~series.symbolSize) can be set as a callback function, where symbol size can be calculated by values of a certain dimension.
@@ -129,7 +129,7 @@ series: [{
+ When a dimension corresponds to a time axis (type is `'time'`), the value can be:
+ a timestamp, like `1484141700832`, which represents a UTC time.
+ a date string, in one of the formats below:
- + a subset of [ISO 8601](http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.15), only including (all of these are treated as local time unless timezone is specified, which is consistent with [moment](https://momentjs.com/)):
+ + a subset of [ISO 8601](https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.15), only including (all of these are treated as local time unless timezone is specified, which is consistent with [moment](https://momentjs.com/)):
+ only part of year/month/date/time are specified: `'2012-03'`, `'2012-03-01'`, `'2012-03-01 05'`, `'2012-03-01 05:06'`.
+ separated by `"T"` or a space: `'2012-03-01T12:22:33.123'`, `'2012-03-01 12:22:33.123'`.
+ timezone specified: `'2012-03-01T12:22:33Z'`, `'2012-03-01T12:22:33+8000'`, `'2012-03-01T12:22:33-05:00'`.
@@ -137,9 +137,9 @@ series: [{
`'2012'`, `'2012-3-1'`, `'2012/3/1'`, `'2012/03/01'`,
`'2009/6/12 2:00'`, `'2009/6/12 2:05:08'`, `'2009/6/12 2:05:08.123'`.
+ a JavaScript Date instance created by user:
- + Caution, when using a data string to create a Date instance, [browser differences and inconsistencies](http://dygraphs.com/date-formats.html) should be considered.
+ + Caution, when using a data string to create a Date instance, [browser differences and inconsistencies](https://dygraphs.com/date-formats.html) should be considered.
+ For example: In chrome, `new Date('2012-01-01')` is treated as a Jan 1st 2012 in UTC, while `new Date('2012-1-1')` and `new Date('2012/01/01')` are treated as Jan 1st 2012 in local timezone. In safari `new Date('2012-1-1')` is not supported.
- + So if you intent to perform `new Date(dateString)`, it is strongly recommended to use a time parse library (e.g., [moment](https://momentjs.com/)), or use `echarts.number.parseDate`, or check [this](http://dygraphs.com/date-formats.html).
+ + So if you intent to perform `new Date(dateString)`, it is strongly recommended to use a time parse library (e.g., [moment](https://momentjs.com/)), or use `echarts.number.parseDate`, or check [this](https://dygraphs.com/date-formats.html).
diff --git a/zh/option/partial/2d-data.md b/zh/option/partial/2d-data.md
index 7d156deb..b00d57f7 100644
--- a/zh/option/partial/2d-data.md
+++ b/zh/option/partial/2d-data.md
@@ -73,7 +73,7 @@ series: [{
```
+ 在 [直角坐标系 (grid)](~grid) 中『维度X』和『维度Y』会默认对应于 [xAxis](~xAxis) 和 [yAxis](~yAxis)。
-+ 在 [极坐标系 (polar)](~polar) 中『维度X』和『维度Y』会默认对应于 [radiusAxis](~radiusAxis) 和 [angleAxis](~anbleAxis)。
++ 在 [极坐标系 (polar)](~polar) 中『维度X』和『维度Y』会默认对应于 [radiusAxis](~radiusAxis) 和 [angleAxis](~angleAxis)。
+ 后面的其他维度是可选的,可以在别处被使用,例如:
+ 在 [visualMap](~visualMap) 中可以将一个或多个维度映射到颜色,大小等多个图形属性上。
+ 在 [series.symbolSize](~series.symbolSize) 中可以使用回调函数,基于某个维度得到 symbolSize 值。
@@ -125,7 +125,7 @@ series: [{
+ 当某维度对应于时间轴(type 为 `'time'`)的时候,值可以为:
+ 一个时间戳,如 `1484141700832`,表示 UTC 时间。
+ 或者字符串形式的时间描述:
- + [ISO 8601](http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.15) 的子集,只包含这些形式(这几种格式,除非指明时区,否则均表示本地时间,与 [moment](https://momentjs.com/) 一致):
+ + [ISO 8601](https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.15) 的子集,只包含这些形式(这几种格式,除非指明时区,否则均表示本地时间,与 [moment](https://momentjs.com/) 一致):
+ 部分年月日时间: `'2012-03'`, `'2012-03-01'`, `'2012-03-01 05'`, `'2012-03-01 05:06'`.
+ 使用 `'T'` 或空格分割: `'2012-03-01T12:22:33.123'`, `'2012-03-01 12:22:33.123'`.
+ 时区设定: `'2012-03-01T12:22:33Z'`, `'2012-03-01T12:22:33+8000'`, `'2012-03-01T12:22:33-05:00'`.
@@ -133,9 +133,9 @@ series: [{
`'2012'`, `'2012-3-1'`, `'2012/3/1'`, `'2012/03/01'`,
`'2009/6/12 2:00'`, `'2009/6/12 2:05:08'`, `'2009/6/12 2:05:08.123'`
+ 或者用户自行初始化的 Date 实例:
- + 注意,用户自行初始化 Date 实例的时候,[浏览器的行为有差异,不同字符串的表示也不同](http://dygraphs.com/date-formats.html)。
+ + 注意,用户自行初始化 Date 实例的时候,[浏览器的行为有差异,不同字符串的表示也不同](https://dygraphs.com/date-formats.html)。
+ 例如:在 chrome 中,`new Date('2012-01-01')` 表示 UTC 时间的 2012 年 1 月 1 日,而 `new Date('2012-1-1')` 和 `new Date('2012/01/01')` 表示本地时间的 2012 年 1 月 1 日。在 safari 中,不支持 `new Date('2012-1-1')` 这种表示方法。
- + 所以,使用 `new Date(dataString)` 时,可使用第三方库解析(如 [moment](https://momentjs.com/)),或者使用 `echarts.number.parseDate`,或者参见 [这里](http://dygraphs.com/date-formats.html)。
+ + 所以,使用 `new Date(dataString)` 时,可使用第三方库解析(如 [moment](https://momentjs.com/)),或者使用 `echarts.number.parseDate`,或者参见 [这里](https://dygraphs.com/date-formats.html)。
**当需要对个别数据进行个性化定义时:**
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org