Multiple series of map is not displayed all together
See original GitHub issueVersion: 3.4.0
I have two series where each of them is showing different country (with different color). The issue is that I don’t seem to be able to show both series together. The second series is visible only if the first is switched off:
Here is the code:
option = {
"color": [
"#2196f3",
"#e91e63"
],
"legend": {
"data": [
"Category 1",
"Category 2"
]
},
"geo": {
"map": "world",
"scaleLimit": {
"min": 10
},
"center": [
"5",
"50"
]
},
"series": [
{
"map": "world",
"name": "Category 1",
"type": "map",
"scaleLimit": {
"min": 10
},
"center": [
"5",
"50"
],
"data": [
{
"name": "United Kingdom",
"category": "Category 1",
"itemStyle": {
"normal": {
"areaColor": "#2196f3"
},
"emphasis": {
"areaColor": "rgb(81, 173, 246)"
}
},
"value": "100"
}
]
},
{
"map": "world",
"name": "Category 2",
"type": "map",
"scaleLimit": {
"min": 10
},
"center": [
"5",
"50"
],
"data": [
{
"name": "Czech Republic",
"category": "Category 2",
"itemStyle": {
"normal": {
"areaColor": "#e91e63"
},
"emphasis": {
"areaColor": "rgb(238, 76, 131)"
}
},
"value": "5"
}
]
}
]
}
Seems previous series are overlaying following series? Although I’ve tried to set non active area color to transparent with no success. I’ve also tried to set zLevel, played with visualMap (which actually shows the country but doesn’t apply custom color… )
Any ideas? Or is this a bug?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Multiple series of map is not displayed all together #5006
Version: 3.4.0 I have two series where each of them is showing different country (with different color). The issue is that I don't...
Read more >Map Chart - Multiple Series
Map Chart - Multiple Series ... For filled map we naturally can't show multiple series at once, here is one of the ways...
Read more >Maps Cannot be Displayed in Tableau!! How do I Fix This?
There are several reasons why your Tableau map is not displaying – probably; You've assigned the wrong geographical role or Used the wrong ......
Read more >Problem: Datasets do not line up when added to ArcMap
After adding several datasets to an ArcMap Data Frame, features in some layers do not align correctly with other layers. Cause. When adding...
Read more >The aerial Bing map is not displayed in Civil 3D and ...
Either move all data to the correct range or create a custom coordinate system with the corresponding shift. For versions 2015 to 2018...
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
@jarben Yes I can implement it using
visualMap
like this: (although the emphasis setting seems to be a little ugly)Thanks for these workarounds, I’m having the same issue. It would be awesome if the following was possible:
I doubt I’ll have time to do this myself, but if I manage to I’ll make a pull request and comment it here.