Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

align chart columns left/right

Tags:

highcharts

I'm trying to align columns to the left in my chart. By default they are in the middle.

I can't find anything about this in the API documentation.

enter image description here

Here is a jsFiddle test.

like image 249
pyccki Avatar asked Jan 18 '12 19:01

pyccki


1 Answers

In the highcharts api, have you examined the group padding feature? http://www.highcharts.com/ref/#plotOptions-column--groupPadding

plotOptions: {
    series: {
        groupPadding: 0
    }
},

If the columns appear too wide when you set the groupPadding to 0, you can still play with the pointPadding. http://www.highcharts.com/ref/#plotOptions-column--pointPadding

(If that doesn't fit your needs, I guess I'm a bit perplexed, because I don't see how having chart columns aligned to the left, then followed by a big blank space on the right, would make for a well-designed chart...)

like image 138
mg1075 Avatar answered Sep 25 '22 07:09

mg1075