echarts [Bug] bar3d 0值渲染 及 stacked bar3d高度问题

xn1cxnb4  于 2022-12-31  发布在  Echarts
关注(0)|答案(1)|浏览(267)

Version

5.2.2

No response

Steps to Reproduce

0值渲染问题:
https://echarts.apache.org/examples/zh/editor.html?c=bar3d-punch-card&gl=1

stacked bar3d 高度问题:
在echarts示例网页内输入如下代码:
var data = [0, 0, 1, 0, 1, 1];
var color = [
' #8000 ', // green
'#FF0000' // red
];
var series = [];
for (var i = 0; i < 2; i++) {
series.push({
type: 'bar3D',
data: data[i],
stack: 'stack',
color: color[i],
});
}
option = {
tooltip: {},
xAxis3D: {
type: 'value'
},
yAxis3D: {
type: 'value'
},
zAxis3D: {
type: 'value'
},
grid3D: {
boxWidth: 200,
boxDepth: 120
},
series: series
};

Current Behavior

0值渲染问题:
示例中可以看到部分数据z值为0,但仍出现在图中,是否可以设置不出现?目前没有找到合适的方法

stacked bar3d 高度问题:
可以看到红色柱子的开始高度是1,显然不符合常理,应该是0

Expected Behavior

0值渲染问题:
示例中可以看到部分数据z值为0,但仍出现在图中,是否可以设置不出现?目前没有找到合适的方法

stacked bar3d 高度问题:
可以看到红色柱子的开始高度是1,显然不符合常理,应该是0

Environment

- OS: Windows 10 & Mac latest
- Browser: Chrome 97 & Chrome 86
- Framework: 官方示例网页环境

Any additional comments?

No response

jvlzgdj9

jvlzgdj91#

@yzhHoward It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED

TITLE

[Bug] bar3d 0 value rendering and stacked bar3d height issues

BODY

Version

5.2.2

No response

Steps to Reproduce

0 value rendering problem:
https://echarts.apache.org/examples/en/editor.html?c=bar3d-punch-card&gl=1

Stacked bar3d height problem:
Enter the following code in the echarts example webpage:
var data = [0, 0, 1, 0, 1, 1];
var color = [
' #8000 ', // green
'#FF0000' // red
];
var series = [];
for (var i = 0; i < 2; i++) {
series.push({
type: 'bar3D',
data: data[i],
stack: 'stack',
color: color[i],
});
}
option = {
tooltip: {},
xAxis3D: {
type: 'value'
},
yAxis3D: {
type: 'value'
},
zAxis3D: {
type: 'value'
},
grid3D: {
boxWidth: 200,
boxDepth: 120
},
series: series
};

Current Behavior

0 value rendering problem:
In the example, you can see that the z value of some data is 0, but it still appears in the figure. Is it possible to set it to not appear? No suitable method has been found

Stacked bar3d height problem:
It can be seen that the starting height of the red column is 1, which is obviously unreasonable and should be 0

Expected Behavior

0 value rendering problem:
In the example, you can see that the z value of some data is 0, but it still appears in the figure. Is it possible to set it to not appear? No suitable method has been found

Stacked bar3d height problem:
It can be seen that the starting height of the red column is 1, which is obviously unreasonable and should be 0

Environment

- OS: Windows 10 & Mac latest
- Browser: Chrome 97 & Chrome 86
- Framework: Official sample web environment

Any additional comments?

No response

相关问题