Align columns left / right

I am trying to align the columns on the left in my chart. By default, they are in the middle.

I can not find anything about this in the API documentation.

enter image description here

Here is the jsFiddle test.

+6
source share
2 answers

In highchart api, did you learn the function of filling a group? http://www.highcharts.com/ref/#plotOptions-column--groupPadding

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

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

(If this does not fit your needs, I think I'm a little puzzled because I don’t see the columns of the chart align to the left, and then the big empty space to the right, for a well-designed graph ...)

+2
source

Source: https://habr.com/ru/post/906335/


All Articles