Question

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?

Was it helpful?

Solution

Update pointPadding :0.2 to pointPadding :0 in

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

OTHER TIPS

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

DEMO

Also check GroupPadding and PointPadding

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top