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

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

Comments

Projects
None yet
2 participants
@amoydavid

image

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

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

@amoydavid

This comment has been minimized.

Show comment
Hide comment
@amoydavid

amoydavid Jan 12, 2016

echarts.min.js

echarts.min.js

@pissang

This comment has been minimized.

Show comment
Hide comment
@pissang

pissang Jan 12, 2016

Contributor

能给下 option 么?谢谢

Contributor

pissang commented Jan 12, 2016

能给下 option 么?谢谢

@amoydavid

This comment has been minimized.

Show comment
Hide comment
@amoydavid

amoydavid Jan 12, 2016

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'
                            }
                        }
                    }
                }
            ]
        };
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

This comment has been minimized.

Show comment
Hide comment
@pissang

pissang Jan 12, 2016

Contributor

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

Contributor

pissang commented Jan 12, 2016

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

@pissang pissang added the bug label Jan 12, 2016

@amoydavid

This comment has been minimized.

Show comment
Hide comment

//抱拳

@pissang pissang closed this in 4a55f63 Jan 12, 2016

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