andrus opened a new issue, #21520:
URL: https://github.com/apache/echarts/issues/21520
### 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:
```javascript
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.
```javascript
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
<img width="1237" height="422" alt="Image"
src="https://github.com/user-attachments/assets/55c1b8f1-dac2-40cc-b801-84345848f29e"
/>
### Expected Behavior
No error should be thrown, the map of Iceland should display, mouse over the
country regions should display dataset numbers.
### Environment
```markdown
- OS: MacOS
- Browser: agnostic, e.g., Firefox 148 or Chrome 145.0.7632.117
- Framework: N/A
```
### 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]