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.interval设置为0时,最后一个x轴的文字会加粗 #11122

Closed
sunan102 opened this issue Aug 28, 2019 · 5 comments

Comments

@sunan102
Copy link

Version

4.2.1

Steps to reproduce

app.title = '坐标轴刻度与标签对齐';

option = {
    color: ['#3398DB'],
    tooltip : {
        trigger: 'axis',
        axisPointer : {            // 坐标轴指示器,坐标轴触发有效
            type : 'shadow'        // 默认为直线,可选为:'line' | 'shadow'
        }
    },
    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
                        }
        }
    ],
    yAxis : [
        {
            type : 'value'
        }
    ],
    series : [
        {
            name:'直接访问',
            type:'bar',
            barWidth: '60%',
            data:[10, 52, 200, 334, 390, 330, 220]
        }
    ]
};

What is expected?

期望能修复此bug

What is actually happening?

最后一个bar的横坐标文字会加粗

@echarts-bot
Copy link

echarts-bot bot commented Aug 28, 2019

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 .

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-help labels Aug 28, 2019
@yufeng04
Copy link
Contributor

xAxis.interval can't be used in the category axis. Document

@Ovilia
Copy link
Contributor

Ovilia commented Aug 29, 2019

Duplicate of #10304 . It has been fixed in a version that we are going to release this week.
Thanks for reporting.

@Ovilia Ovilia added duplicate and removed bug pending We are not sure about whether this is a bug/new feature. waiting-for-help labels Aug 29, 2019
@Ovilia Ovilia closed this as completed Aug 29, 2019
@foolzhang
Copy link
Contributor

官方文档确实说了:无法在类目轴中使用。
#10304 说修复了,但是迟迟未发布
如果着急,可以试试这个方法 , 亲测 4.2.1是可以的
axisLable:{
borderWidth:10, // 大小盖住你的文本即可
borderColor:'#fff', // 背景色
interval:0
}
@Ovilia

@BubblyPop
Copy link

我也遇到了这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants