Skip to content

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

@yzhHoward

Description

@yzhHoward

Version

5.2.2

Link to Minimal Reproduction

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugglpendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.waiting-for: community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions