Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] bar的bug #20695

Open
602874946 opened this issue Jan 17, 2025 · 4 comments
Open

[Bug] bar的bug #20695

602874946 opened this issue Jan 17, 2025 · 4 comments
Labels
bug pending We are not sure about whether this is a bug/new feature.

Comments

@602874946
Copy link

Version

5.5

Link to Minimal Reproduction

option = { xAxis: { type: 'value', name: 'x轴' }, yAxis: { type: 'value', name: 'y轴' }, dataZoom: [ { show: true }, { type: 'inside' }, { type: 'slider', showDataShadow: false }, { show: true, yAxisIndex: 0, filterMode: 'empty', type: 'slider', showDataShadow: false } ], tooltip: { triggerOn: 'none', alwaysShowContent: true, position: [50, 50], showContent: true }, series: [ { data: [ [10, 100], [20, 200], [30, 150], [40, 80], [50, 70], [60, 110], [70, 130] ], select: { itemStyle: { color: '#4EAF55' } }, selectedMode: 'multiple', type: 'bar' } ] };

Steps to Reproduce

option = {
xAxis: {
type: 'value',
name: 'x轴'
},
yAxis: {
type: 'value',
name: 'y轴'
},
dataZoom: [
{
show: true
},
{
type: 'inside'
},
{
type: 'slider',
showDataShadow: false
},
{
show: true,
yAxisIndex: 0,
filterMode: 'empty',
type: 'slider',
showDataShadow: false
}
],
tooltip: {
triggerOn: 'none',
alwaysShowContent: true,
position: [50, 50],
showContent: true
},

series: [
{
data: [
[10, 100],
[20, 200],
[30, 150],
[40, 80],
[50, 70],
[60, 110],
[70, 130]
],
select: {
itemStyle: {
color: '#4EAF55'
}
},
selectedMode: 'multiple',
type: 'bar'
}
]
};

Current Behavior

Image

Expected Behavior

滑动鼠标后,被遮挡了,希望不要遮挡

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@602874946 602874946 added the bug label Jan 17, 2025
@echarts-bot echarts-bot bot added the pending We are not sure about whether this is a bug/new feature. label Jan 17, 2025
Copy link

echarts-bot bot commented Jan 17, 2025

@602874946 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] bar bug

@Justin-ZS
Copy link

试试调整 yAxiszlevel demo

@602874946
Copy link
Author

602874946 commented Jan 17, 2025

试试调整 yAxiszlevel demo

Image
这样也非常难看,能不能不显示这列的数据呢?

@Justin-ZS
Copy link

试试调整 yAxiszlevel demo

Image 这样也非常难看,能不能不显示这列的数据呢?

直接可用的配置项我没找到
一个可能思路是:

  1. 监听 datazoom 事件
  2. 获取 option.datazom 里的 startValue 和 endValue
  3. 回调里修改 data 把重叠列的数据置空

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

2 participants