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

当xAxis axisLabel设置rotate时,axisPointer label浮层会与x轴坐标交叉 #12047

Closed
JiangYuCoder opened this issue Jan 14, 2020 · 3 comments
Assignees
Labels
enhancement stale Inactive for a long time. Will be closed in 7 days.

Comments

@JiangYuCoder
Copy link

Version

4.6.0

Steps to reproduce

option = {
color: ['#3398DB'],
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross',
crossStyle: {
color: '#999'
}
}
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: [
{
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
axisTick: {
alignWithLabel: true
},
axisLabel: {
interval:0,
rotate:45,
color:function (value, index) {
return 'red';
},
},

    axisPointer:{
        label:{
            show:true,
            backgroundColor:'none',
            color:'green',
            nameRotate:45,
       
        }
    }
}

],
yAxis: [
{
type: 'value',

}

],
series: [
{
name: '直接访问',
type: 'bar',
barWidth: '60%',
data: [10, 52, 200, 334, 390, 330, 220]
}
]
};

What is expected?

在添加axisPointer时能有效地保证x轴的可读性

What is actually happening?

当xAxis axisLabel设置rotate时,axisPointer label浮层会与x轴坐标交叉


当xAxis axisLabel设置rotate时,axisPointer label浮层会与x轴坐标交叉

@echarts-bot
Copy link

echarts-bot bot commented Jan 14, 2020

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.

If you are interested in the project, you may also subscribe our mail list.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Jan 14, 2020
@susiwen8 susiwen8 removed pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Jan 14, 2020
@susiwen8 susiwen8 self-assigned this Jan 14, 2020
@susiwen8 susiwen8 added enhancement and removed bug labels Jan 15, 2020
@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

@github-actions github-actions bot added the stale Inactive for a long time. Will be closed in 7 days. label Jan 14, 2022
@github-actions
Copy link
Contributor

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement stale Inactive for a long time. Will be closed in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants