[Bug] echarts map.series nameProperty is setted, but ti
See original GitHub issueVersion
5.4.0
Link to Minimal Reproduction
https://codepen.io/pen?template=xxZzxZd
Steps to Reproduce
1、i want to use adcode key to relate gejson wdth the data wither the default value ‘name’. but it also the key of ‘name’
Current Behavior
1、i want to use adcode key to relate gejson wdth the data wither the default value ‘name’. but it also the key of ‘name’
Expected Behavior
{
tooltip: {
triggerOn: "click",
formatter: function(e, t, n) {
return .5 == e.value ? e.name + ":有疑似病例" : e.seriesName + "<br />" + e.name + ":" + e.value
}
},
visualMap: {
min: 0,
max: 1000,
left: 26,
bottom: 40,
showLabel: !0,
text: ["高", "低"],
pieces: [{
gt: 100,
label: "> 100 人",
color: "#7f1100"
}, {
gte: 10,
lte: 100,
label: "10 - 100 人",
color: "#ff5428"
}, {
gte: 1,
lt: 10,
label: "1 - 9 人",
color: "#ff8c71"
}, {
gt: 0,
lt: 1,
label: "疑似",
color: "#ffd768"
}, {
value: 0,
color: "#ffffff"
}],
show: !0
},
geo: {
map: "nw",
roam: !1,
scaleLimit: {
min: 1,
max: 2
},
zoom: 1.23,
top: 120,
label: {
normal: {
show: !0,
fontSize: "14",
color: "rgba(0,0,0,0.7)"
}
},
itemStyle: {
normal: {
//shadowBlur: 50,
//shadowColor: 'rgba(0, 0, 0, 0.2)',
borderColor: "rgba(0, 0, 0, 0.2)"
},
emphasis: {
areaColor: "#f2d5ad",
shadowOffsetX: 0,
shadowOffsetY: 0,
borderWidth: 0
}
}
},
series: [{
name: "确诊病例",
type: "map",
nameproperty: 'adcode',
geoIndex: 0,
data: dataList
}]
}
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
Issue Analytics
- State:
- Created 10 months ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Changelog - Apache ECharts
mapType is deprecated. Use series.map instead. option series.mapLocation is deprecated. graph series : option series ...
Read more >Multiple series of map is not displayed all together · Issue #5006
The issue is that I don't seem to be able to show both series together ... (which actually shows the country but doesn't...
Read more >Mapping Toolbox User's Guide - Index of /
A set of scripts that apply toolbox functions to sample data ... (which is similar to the MATLAB get command, but returns map-specific....
Read more >bZY - River Thames Conditions - Environment Agency - GOV.UK
Bukhara khanate map, E620g, Nourse circleville oh, Palena trasporti chieti ... error 3, Arbol punico, Bryanstars interview nevershoutnever, Truman show film ...
Read more >Sync map and graph series in apache echarts - Stack Overflow
Moreover, I have set my map to follow coordinates with "boundingCoords", but I do not see that same setting in the graph serie....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
由于 v5.4.1 正在发布过程中,已经列到 v5.5.0 的 milestone 了,可能还需比较久的时间,计划日期是在明年 2 月份初发布。
好的,我暂时使用了另外一种方法去处理了这个问题。期待这个问题的完整解决。