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

[3.0.0] 柱状图绘图,尾部可能出现问题 #2343

Closed
amoydavid opened this issue Jan 12, 2016 · 5 comments
Closed

[3.0.0] 柱状图绘图,尾部可能出现问题 #2343

amoydavid opened this issue Jan 12, 2016 · 5 comments
Labels

Comments

@amoydavid
Copy link

image

看尾部的几个,明显超过x轴了。2.7上不会这样。

@amoydavid amoydavid changed the title 柱状图绘图,尾部可能出现问题 [3.0.0] 柱状图绘图,尾部可能出现问题 Jan 12, 2016
@amoydavid
Copy link
Author

echarts.min.js

@pissang
Copy link
Contributor

pissang commented Jan 12, 2016

能给下 option 么?谢谢

@amoydavid
Copy link
Author

var option = {
            title:{
                text:"2016-01-12 00:00:00 - 2016-01-12 23:59:59"
            },
            tooltip: {
                show: true
            },
            toolbox: {
                show : true,
                feature : {
                    mark : {show: false},
                    dataView : {show: true, readOnly: false},
                    restore : {show: false},
                    saveAsImage : {show: true}
                }
            },
            legend: {
                data:['扫描量']

            },
            xAxis : [
                {
                    type : 'category',
                    data : ["纸箱1","红包2","红包3","红包4","红包5","红包6","红包7","红包8","红包9","纸箱10","纸箱11","红包12","红包13","红包14","红包15","纸箱16","红包17","纸箱18","纸箱19"],
                    axisLabel:{rotate:20,interval:false}
                }
            ],
            yAxis : [
                {
                    type : 'value'
                }
            ],
            series : [
                {
                    "name":"扫描量",
                    "type":"bar",
                    "data":[443,98,92,54,46,36,30,22,21,18,15,13,8,7,5,4,4,2,1],
                    itemStyle: {
                        normal: {
                            color: 'tomato',
                            barBorderColor: 'tomato',
                            barBorderWidth: 6,
                            barBorderRadius:0,
                            label : {
                                show: true, position: 'top'
                            }
                        }
                    }
                }
            ]
        };

@pissang
Copy link
Contributor

pissang commented Jan 12, 2016

看了下好像是加了边框的原因,你可以先把 barBorderWidth 设为 0,我们后续修复下这个问题。

@pissang pissang added the bug label Jan 12, 2016
@amoydavid
Copy link
Author

//抱拳

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

No branches or pull requests

2 participants