score:11

Accepted answer

please try and reproduce the error here @ http://jsfiddle.net/jugal/bgnbg/

highcharts by default smartly reduces width of the columns if there are way too many of them so as to avoid overlapping.

the columns will tend to overlap if you have overridden the aforementioned default behavior by specifying column.pointwidth

    column: {           
        pointwidth : 10
    }

eg: @ http://jsfiddle.net/jugal/bgnbg/2/

so to avoid overlapping, i see two options you have.

option #1. remove the column.pointwidth
this will make the columns thinner in order to not overlap
eg: @ http://jsfiddle.net/jugal/bgnbg/

option #2. use column.datagrouping
this will help have a constant width of columns, but reducing (by grouping them) the number of columns instead to avoid clutter/overlap.

datagrouping = {
    grouppixelwidth: 40, // minimum width for each column
    units: [[            // permissible groupings
        'day',
        [1, 2, 3,4,5,6]  // 1,2,3,4,5,6 days may be grouped into 1 column
        ]]
}

eg: @ http://jsfiddle.net/jugal/jrajw/4/
similar question @ https://stackoverflow.com/a/12354111/1566575

score:-1

the best way to control the columns and make sure they don't stack/overlap over each other is by controlling the width of the chart. you can do this within the containing <div>.

  • css: min-width ~ allows the div to change size, but restrict it from going under a certain width. you do this because you know once it is under that width stuff start to blur together and is unreadable.
  • css: width ~ forces the width of the chart to allows be a certain value.
  • css: no width set ~ notice if you shrink the browser window down to far it begins to make the chart unreadable.

by controlling the width of the containing div and rotating the label as c0deninja suggested, you can prevent most stack over/overlap issues. however, if you chart has to many series/data points, even this won't help.

‚Äč

score:-1

my problem was similar and i was getting nowhere with solutions which moved items to the secondary axis etc. then i found my x axis was being recognized as a continuum (in this case: date) and the two overlapping columns were of course sharing the same x value.

i solved the problem by selecting the x axis, found the option called "axis type" and deselected "automatically select based on data" changing it to "text axis". that got my columns side by side.

a bit overdue for your problem but maybe helpful.


Related Query

More Query from same tag