-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Open
Labels
bugenThis issue is in EnglishThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.
Description
Version
6.0.0
Link to Minimal Reproduction
option code provided in the body
Steps to Reproduce
The following option properly renders as a map of Iceland with a numeric dataset displayed on mouse over each region:
var opt = {
tooltip: {
trigger: 'item',
},
dataset: {
source: [
['L0', 'val'],
['Austurland', 1000],
['Suðurland', 256],
['Norðurland vestra', 489],
['Norðurland eystra', 51]
]
},
geo: {
map: 'iceland',
aspectScale: 0.42261826174069944,
label: {
show: true,
position: 'inside'
}
},
series: [
{
name: 'val',
encode: {
value: 1,
itemName: 0,
},
seriesLayoutBy: 'column',
coordinateSystem: 'geo',
geoIndex: 0,
type: 'map'
},
]
}Same option, but changing the dataset layout to row-based and setting seriesLayoutBy: 'row' results in an error shown in the next section.
var opt = {
tooltip: {
trigger: 'item',
},
dataset: {
source: [
['L0','Austurland','Suðurland','Norðurland vestra','Norðurland eystra'],
['val',1000,256,489,51]
]
},
geo: {
map: 'iceland',
aspectScale: 0.42261826174069944,
label: {
show: true,
position: 'inside'
}
},
series: [
{
name: 'val',
encode: {
value: 1,
itemName: 0,
},
seriesLayoutBy: 'row',
coordinateSystem: 'geo',
geoIndex: 0,
type: 'map'
},
]
}Current Behavior
This error for the "row" layout
Expected Behavior
No error should be thrown, the map of Iceland should display, mouse over the country regions should display dataset numbers.
Environment
- OS: MacOS
- Browser: agnostic, e.g., Firefox 148 or Chrome 145.0.7632.117
- Framework: N/AAny additional comments?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugenThis issue is in EnglishThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.