You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by yi...@apache.org on 2020/03/11 15:19:43 UTC

[incubator-echarts-doc] branch fix-GeoJSON-property created (now 2118680)

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

yixiu pushed a change to branch fix-GeoJSON-property
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git.


      at 2118680  Update geo-common.md

This branch includes the following new commits:

     new 2118680  Update geo-common.md

The 1 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.



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


[incubator-echarts-doc] 01/01: Update geo-common.md

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

yixiu pushed a commit to branch fix-GeoJSON-property
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git

commit 2118680013b091cca7274eca879a68f78b41431e
Author: alex2wong <hu...@hotmail.com>
AuthorDate: Wed Mar 11 23:19:36 2020 +0800

    Update geo-common.md
    
    related PR https://github.com/apache/incubator-echarts/pull/12156
---
 en/option/component/geo-common.md | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/en/option/component/geo-common.md b/en/option/component/geo-common.md
index d6574ab..439c5bc 100644
--- a/en/option/component/geo-common.md
+++ b/en/option/component/geo-common.md
@@ -91,6 +91,22 @@ Name mapping for customized areas. For example:
 }
 ```
 
+#${prefix} nameProperty(string) = 'name'
+
+customized property key for GeoJSON feature. By default, 'name' is used as primary key to identify GeoJSON feature.
+For example: 
+```js
+{
+    nameProperty: 'NAME', // key to connect following data point to GeoJSON region {"type":"Feature","id":"01","properties":{"NAME":"Alabama"}, "geometry": { ... }}
+    data:[
+        {name: 'Alabama', value: 4822023},
+        {name: 'Alaska', value: 731449},
+    ]
+}
+```
+
+
+
 ## selectedMode(boolean|string) = false
 Selected mode decides whether multiple selecting is supported. By default, `false` is used for disabling selection. Its value can also be `'single'` for selecting single area, or `'multiple'` for selecting multiple areas.
 


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