Ovilia commented on a change in pull request #95:
URL:
https://github.com/apache/incubator-echarts-doc/pull/95#discussion_r421204406
##########
File path: zh/option/component/geo-common.md
##########
@@ -89,6 +89,20 @@ boundingCoords: [
}
```
+#${prefix} nameProperty(string) = 'name'
+
+默认是 ’name‘,针对 GeoJSON 要素的自定义属性名称,作为主键用于关联数据点和 GeoJSON 地理要素。
+例如:
+```js
+{
+ nameProperty: 'NAME', // 数据点中的 name:Alabama 会关联到 GeoJSON 中 NAME 属性值为
Alabama 的地理要素{"type":"Feature","id":"01","properties":{"NAME":"Alabama"},
"geometry": { ... }}
+ data:[
+ {name: 'Alabama', value: 4822023},
+ {name: 'Alaska', value: 731449},
+ ]
+}
+```
+
#${prefix} selectedMode(boolean|string) = false
Review comment:
The English doc seems to be wrong here with `#${prefix}` being `##`. Do
you mind changing in this PR?
##########
File path: zh/option/component/geo-common.md
##########
@@ -89,6 +89,20 @@ boundingCoords: [
}
```
+#${prefix} nameProperty(string) = 'name'
+
+默认是 ’name‘,针对 GeoJSON 要素的自定义属性名称,作为主键用于关联数据点和 GeoJSON 地理要素。
Review comment:
’name‘ should be `'name'`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]