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/01/06 13:50:15 UTC
[GitHub] [echarts] ixonya opened a new issue #16336: [Bug] Heatmap: Item labels don't show when using a 'key-value format' dataset
ixonya opened a new issue #16336:
URL: https://github.com/apache/echarts/issues/16336
### Version
5.2.2
### Link to Minimal Reproduction
https://codepen.io/ixonya/pen/NWazQRm
### Steps to Reproduce
1. Create a heatmap chart, and set **series.label.show = true**, in order to show the values in each item.
2. Use a 'key-value format' dataset as the data source. The data is like :
```
var datasetSrc = [
{
x: 0, y: 0, value: 1
},
{
x: 1, y: 1, value: 5
},
{
x: 2, y: 2, value: 7
},
{
x: 3, y: 3, value: 10
},
];
```
### Current Behavior
The heatmap shows correctly, however, all item labels are dashes: "-".
I tried to set "encode" and "dimensions" settings, but didn't help.
The item heat colors are right, and tooltips for each item show correct values, but labels are not working.
### Expected Behavior
Item labels show correct values.
### 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
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] ixonya commented on issue #16336: [Bug] Heatmap: Item labels don't show when using a 'key-value format' dataset
Posted by GitBox <gi...@apache.org>.
ixonya commented on issue #16336:
URL: https://github.com/apache/echarts/issues/16336#issuecomment-1006681173
I just found a workaound that using label.formatter to return the correct value.
--
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