biankaiwen opened a new issue, #17279:
URL: https://github.com/apache/echarts/issues/17279
### Version
5.3.3以及之前
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
这个例子是官网里的例子:
`option = {
tooltip: {
position: "top"
},
animation: false,
grid: {
height: "50%",
top: "10%"
},
xAxis: {
type: "category",
data: ["12a", "1a", "2a", "3a", "4a", "5a", "6a", "7a", "8a", "9a",
"10a", "11a", "12p", "1p", "2p", "3p", "4p", "5p", "6p", "7p", "8p", "9p",
"10p", "11p"],
splitArea: {
show: true
}
},
yAxis: {
type: "category",
data: ["Saturday", "Friday", "Thursday", "Wednesday", "Tuesday",
"Monday", "Sunday"],
splitArea: {
show: true
}
},
visualMap: {
min: 0,
max: 10,
calculable: true,
orient: "horizontal",
left: "center",
bottom: "15%"
},
series: [{
name: "Punch Card",
type: "heatmap",
encode: {
x:0,
y:1
},
data: [
[11, 0, 2],
[12, 0, 4],
[13, 0, 1],
[14, 0, 1],
[15, 0, 3],
[16, 0, 4],
[17, 0, 6],
[18, 0, 4],
[19, 0, 4],
[20, 0, 3],
[21, 0, 3],
[22, 0, 2],
[23, 0, 5],
]
}]
}`
此时热力图可以被画出,但是如果将encode设置为同一列,则产生了空白图像,如下
`option = {
tooltip: {
position: "top"
},
animation: false,
grid: {
height: "50%",
top: "10%"
},
xAxis: {
type: "category",
data: ["12a", "1a", "2a", "3a", "4a", "5a", "6a", "7a", "8a", "9a",
"10a", "11a", "12p", "1p", "2p", "3p", "4p", "5p", "6p", "7p", "8p", "9p",
"10p", "11p"],
splitArea: {
show: true
}
},
yAxis: {
type: "category",
data: ["Saturday", "Friday", "Thursday", "Wednesday", "Tuesday",
"Monday", "Sunday"],
splitArea: {
show: true
}
},
visualMap: {
min: 0,
max: 10,
calculable: true,
orient: "horizontal",
left: "center",
bottom: "15%"
},
series: [{
name: "Punch Card",
type: "heatmap",
encode: {
x:0,
y:0
},
data: [
[11, 0, 2],
[12, 0, 4],
[13, 0, 1],
[14, 0, 1],
[15, 0, 3],
[16, 0, 4],
[17, 0, 6],
[18, 0, 4],
[19, 0, 4],
[20, 0, 3],
[21, 0, 3],
[22, 0, 2],
[23, 0, 5],
]
}]
}`
### Current Behavior
热力图产生空白图像
### Expected Behavior
热力图应该产生类似对角线的图像
### Environment
```markdown
- OS:
- Browser:Chrome
- 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: [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]