Space between columns

◇◆丶佛笑我妖孽 提交于 2019-12-10 12:53:25

问题


I have a column chart where for each X value I have two series. But the graph shows a wide spacing between each X value.

Q: How can I do in Highchart to have 1px space between the columns and the y Axis?


回答1:


Update pointPadding :0.2 to pointPadding :0 in

plotOptions: {
                column: {
                    pointPadding: 0,
                    borderWidth: 0
                }
            },



回答2:


chart: {
    marginBottom: 1,
    marginLeft: 0,
    marginRight: 0,
    marginTop: 0,
    renderTo: container,
    type: 'column',
},

DEMO

Also check GroupPadding and PointPadding



来源:https://stackoverflow.com/questions/15220619/space-between-columns

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!