Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Space between columns

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?

like image 747
Chanan Berler Avatar asked Mar 05 '13 09:03

Chanan Berler


2 Answers

Update pointPadding :0.2 to pointPadding :0 in

plotOptions: {
                column: {
                    pointPadding: 0,
                    borderWidth: 0
                }
            },
like image 74
Ahmed Shaban Avatar answered Sep 29 '22 19:09

Ahmed Shaban


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

DEMO

Also check GroupPadding and PointPadding

like image 41
AliRıza Adıyahşi Avatar answered Sep 29 '22 18:09

AliRıza Adıyahşi