radusuciu commented on issue #16336:
URL: https://github.com/apache/echarts/issues/16336#issuecomment-1319283104
Same issue when the data is specified as an array:
```javascript
var datasetSrc = [
[0, 0, 'one', 1],
[1, 1, 'one', 5],
[2, 2, 'two', 7],
[3, 3, 'three', 10],
];
```
In combination with this option:
```javascript
visualMap: {
min: 0,
max: 10,
dimension: [3],
show: false
},
series: [{
type: 'heatmap',
label: {
show: true,
},
encode: {
x: 0,
y: 1,
value: 3,
}
}]
```
will always display the label from the third element of `datasetSrc` (index
2; see https://codepen.io/radusuciu/pen/wvXPKao), and I believe that
`label.formatter` is the only way to override this currently:
```javascript
label: {
show: true,
formatter: (value) => {
return value.data[3]
}
},
```
--
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]