I want the grid lines to go to the edge as well though.
I was easily able to do this on a line chart using minPadding/maxPadding but this doesn't seem to do anything on a column chart.
I am setting the x-axis categories once data has been loaded and categories worked out using: chart.update(), so not sure if would cause an issue or is there something I'm missing?
My initial x-axis options are (I then add the categories to these options using chart.update()):
Code: Select all
{
id: 'x-axis',
title: { text: '' },
gridLineColor: '#EBEBEB',
lineColor: '#EBEBEB',
labels: {
align: 'center',
useHTML: true,
style: { color: '#A3A3A3', fontSize: '12px' },
y: 30,
},
}