You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/12/02 03:33:06 UTC
[GitHub] [echarts] zhangjinsong opened a new issue, #18005: [Bug] echarts map.series nameProperty is setted, but ti
zhangjinsong opened a new issue, #18005:
URL: https://github.com/apache/echarts/issues/18005
### Version
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
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
_No response_
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] plainheart commented on issue #18005: [Bug] echarts map.series nameProperty is setted, but ti
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #18005:
URL: https://github.com/apache/echarts/issues/18005#issuecomment-1334902623
Thanks for your feedback! This should be a bug. We will fix it later.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] plainheart commented on issue #18005: [Bug] echarts map.series nameProperty is setted, but ti
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #18005:
URL: https://github.com/apache/echarts/issues/18005#issuecomment-1334731525
It should be `nameProperty` rather than `nameproperty`.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] zhangjinsong commented on issue #18005: [Bug] echarts map.series nameProperty is setted, but ti
Posted by GitBox <gi...@apache.org>.
zhangjinsong commented on issue #18005:
URL: https://github.com/apache/echarts/issues/18005#issuecomment-1334899188
i same get answer for this problem, The reason for this problem is that even with the nameProperty property set, echarts still matches the data through the name attribute
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] zhangjinsong commented on issue #18005: [Bug] echarts map.series nameProperty is setted, but ti
Posted by GitBox <gi...@apache.org>.
zhangjinsong commented on issue #18005:
URL: https://github.com/apache/echarts/issues/18005#issuecomment-1334915384
这个问题是设置了nameProperty属性后,visuMap不生效,tooltip也出现。调试代码后发现是echarts还是以nameProperty: 'name'的默认name属性来对geoJson地图和数据进行匹配。
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] zhangjinsong commented on issue #18005: [Bug] echarts map.series nameProperty is setted, but ti
Posted by GitBox <gi...@apache.org>.
zhangjinsong commented on issue #18005:
URL: https://github.com/apache/echarts/issues/18005#issuecomment-1334955222
好的,我暂时使用了另外一种方法去处理了这个问题。期待这个问题的完整解决。
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] pengxiaotian commented on issue #18005: [Bug] echarts map.series nameProperty is setted, but ti
Posted by GitBox <gi...@apache.org>.
pengxiaotian commented on issue #18005:
URL: https://github.com/apache/echarts/issues/18005#issuecomment-1334933193
>
但我觉得这个bug 还挺严重的啊!
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] plainheart commented on issue #18005: [Bug] echarts map.series nameProperty is setted, but ti
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #18005:
URL: https://github.com/apache/echarts/issues/18005#issuecomment-1334929818
由于 v5.4.1 正在发布过程中,已经列到 v5.5.0 的 milestone 了,可能还需比较久的时间,计划日期是在明年 2 月份初发布。
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] pengxiaotian commented on issue #18005: [Bug] echarts map.series nameProperty is setted, but ti
Posted by GitBox <gi...@apache.org>.
pengxiaotian commented on issue #18005:
URL: https://github.com/apache/echarts/issues/18005#issuecomment-1334931225
果然如此! 和我这个问题一样 #18008, 我是用了 nameMap, 就不生效了
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] echarts map.series nameProperty is setted, but ti [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18005:
URL: https://github.com/apache/echarts/issues/18005#issuecomment-1868054835
@zhangjinsong, @plainheart - this not a bug.
[nameProperty](https://echarts.apache.org/en/option.html#series-map.nameProperty) is just a link from a geojson property to the [data name](https://echarts.apache.org/en/option.html#series-map.data.name). It works as intended - [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=map-usa&code=LYTwwgFghgTgLgOgM4QPYHcAyqoBMCWAdgOYAUAlANwBQAJAsQKZynUAEbA5BHHAA5IAXAHphAY1yEEAKyS5GAG3wA3GAkLNhxCMIWoS6VEnz6tjVLP0BaYFD5WxEIlAACtpHEYxxTwlBlI-pwANOxsAGYAroRicCaEbKSOAFKBhORsAN5hHClpCOGMUHCRMIxIBagwAKJQjqThbAC8AHxZORwRCHwwqHxeceUIAFrDfsCMzV09fQP4Q-OMNJ2d4d29_fDzFYtThJEKCsudAL7kHaCQsIhO8th4RGRUHYyO1xVlxPgeXgCydqROI5gCE2Hl9M8VspYGxcMUoJhvnApgBtDocTJsRaCLiAfz1ADhygEB3UHQhSRRg4gAsCAAHABmNgnUIrDFYqATHGcXGAf0jAHcagHnTQBXgYBum0AXMokqBkilsOk0hAABkZzJZmOxXEA7raAdWVicE2KTyTiAOzUgCcSvRWTZHK4gFZYwB7ujq9ZKDWwAGwAVnd5pZlrVnEAiXLaiVSnHyhAAJhNAEZGR0ALo0Dp9OL6KbZH1xOAKaXpn1sJCRABGngAHnBOYsAAobAYgNjfCJERghC0cbPhctcGD4bRwTgWpkWuCoVAKOJ8HG5jPd4hMGCc_CeEHKn0oDAAEUUUBAoZXLLgMCghGMKcI69KxXioYjA73HGU30i
kv-E_aebY7c74ddd86hdQvCoMAVLyr-HBrlgUCFooOIAISga2bClp2KKcIAG1mgpwgBy8pwcZgWwfDzGI5Q4mi74YohKzEJ2Ubygh5GdAoUEwVwbS0YqgBdci2DG5KOVScgAxIa4RRux_YMYODFTuR1HSrR-ErGOcl0QpjHMQonK0WwVhsOxbBcapvF6POXACeE4TupS4Y0uJ5GSeR0nvrJOJRoZH40fRPFMdBGlcDGOlmgZlGdGIfEmZwZnhDSYiGlGtnvvZ76OXm1G7sFbY0W53ksZwgCJroAPPLcTxoXGYJ5m4Iaro2cFiV5slPr6tKnkMSV_GmeZHXhPFeYnIheGIRBcHyreFpIF42ykYh9WdH61aoA-MTNqpcAgP0nK2HwRXvr07I4ge5K6gAXiOwHhrqxGEJ4JkoqJdIRoa366uGd1Rs9dImv1DEbZywJbXmjDAHw0DGEIb5eepk7pZ0g1ITA5JQ71EmqVWNbwDuXCjIsf0-nCcBQDiuMIkiiGIyycYdCcxwcJc0DwMgzAAPJ8KepDJvEkKxlQQA).

The Minimal Reproduction code is defining ```data.adcode``` instead of ```data.name```, which is not supported.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] echarts map.series nameProperty is setted, but ti [echarts]
Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia commented on issue #18005:
URL: https://github.com/apache/echarts/issues/18005#issuecomment-2104098083
> @zhangjinsong, @plainheart - this not a bug. [nameProperty](https://echarts.apache.org/en/option.html#series-map.nameProperty) is just a link from a geojson property to the [data name](https://echarts.apache.org/en/option.html#series-map.data.name). It works as intended - [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=map-usa&code=LYTwwgFghgTgLgOgM4QPYHcAyqoBMCWAdgOYAUAlANwBQAJAsQKZynUAEbA5BHHAA5IAXAHphAY1yEEAKyS5GAG3wA3GAkLNhxCMIWoS6VEnz6tjVLP0BaYFD5WxEIlAACtpHEYxxTwlBlI-pwANOxsAGYAroRicCaEbKSOAFKBhORsAN5hHClpCOGMUHCRMIxIBagwAKJQjqThbAC8AHxZORwRCHwwqHxeceUIAFrDfsCMzV09fQP4Q-OMNJ2d4d29_fDzFYtThJEKCsudAL7kHaCQsIhO8th4RGRUHYyO1xVlxPgeXgCydqROI5gCE2Hl9M8VspYGxcMUoJhvnApgBtDocTJsRaCLiAfz1ADhygEB3UHQhSRRg4gAsCAAHABmNgnUIrDFYqATHGcXGAf0jAHcagHnTQBXgYBum0AXMokqBkilsOk0hAABkZzJZmOxXEA7raAdWVicE2KTyTiAOzUgCcSvRWTZHK4gFZYwB7ujq9ZKDWwAGwAVnd5pZlrVnEAiXLaiVSnHyhAAJhNAEZGR0ALo0Dp9OL6KbZH1xOAKaXpn1sJCRABGngAHnBOYsAAobAYgNjfCJERghC0cbPhctcGD4bRwTgWpkWuCoVAKOJ8HG5jPd4hMGCc_CeE
HKn0oDAAEUUUBAoZXLLgMCghGMKcI69KxXioYjA73HGU30ikv-E_aebY7c74ddd86hdQvCoMAVLyr-HBrlgUCFooOIAISga2bClp2KKcIAG1mgpwgBy8pwcZgWwfDzGI5Q4mi74YohKzEJ2Ubygh5GdAoUEwVwbS0YqgBdci2DG5KOVScgAxIa4RRux_YMYODFTuR1HSrR-ErGOcl0QpjHMQonK0WwVhsOxbBcapvF6POXACeE4TupS4Y0uJ5GSeR0nvrJOJRoZH40fRPFMdBGlcDGOlmgZlGdGIfEmZwZnhDSYiGlGtnvvZ76OXm1G7sFbY0W53ksZwgCJroAPPLcTxoXGYJ5m4Iaro2cFiV5slPr6tKnkMSV_GmeZHXhPFeYnIheGIRBcHyreFpIF42ykYh9WdH61aoA-MTNqpcAgP0nK2HwRXvr07I4ge5K6gAXiOwHhrqxGEJ4JkoqJdIRoa366uGd1Rs9dImv1DEbZywJbXmjDAHw0DGEIb5eepk7pZ0g1ITA5JQ71EmqVWNbwDuXCjIsf0-nCcBQDiuMIkiiGIyycYdCcxwcJc0DwMgzAAPJ8KepDJvEkKxlQQA).
>
> 
>
> The Minimal Reproduction code is defining `data.adcode` instead of `data.name`, which is not supported.
Thank you @helgasoft . You really helped a lot to this project!
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] echarts map.series nameProperty is setted, but ti [echarts]
Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia closed issue #18005: [Bug] echarts map.series nameProperty is setted, but ti
URL: https://github.com/apache/echarts/issues/18005
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] zhangjinsong commented on issue #18005: [Bug] echarts map.series nameProperty is setted, but ti
Posted by GitBox <gi...@apache.org>.
zhangjinsong commented on issue #18005:
URL: https://github.com/apache/echarts/issues/18005#issuecomment-1334907809
how long?
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] zhangjinsong commented on issue #18005: [Bug] echarts map.series nameProperty is setted, but ti
Posted by GitBox <gi...@apache.org>.
zhangjinsong commented on issue #18005:
URL: https://github.com/apache/echarts/issues/18005#issuecomment-1334842154
now, if i want to resolve this problem that i should do something.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] zhangjinsong commented on issue #18005: [Bug] echarts map.series nameProperty is setted, but ti
Posted by GitBox <gi...@apache.org>.
zhangjinsong commented on issue #18005:
URL: https://github.com/apache/echarts/issues/18005#issuecomment-1334908301
do you have a plan
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] pengxiaotian commented on issue #18005: [Bug] echarts map.series nameProperty is setted, but ti
Posted by GitBox <gi...@apache.org>.
pengxiaotian commented on issue #18005:
URL: https://github.com/apache/echarts/issues/18005#issuecomment-1334912422
发现 指定了 geoIndex 之后, visualMap 不生效了?
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org