score:2

Accepted answer

there isn't an automated way, but you can use plotbands to achieve your look.

var categories = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'];
var plotbands = [];
for (var i = 0; i < categories.length; i++) {
  if (i % 3 == 1) {
    plotbands.push({
      color: '#fecdfe',
      from: i - .5,
      to: i + .5
    });
  } else if (i % 3 == 2) {
    plotbands.push({
      color: '#cdfee5',
      from: i - .5,
      to: i + .5
    });
  }
}
highcharts.chart('container', {
  yaxis: {

  },
  xaxis: {
    categories: categories,
    plotbands: plotbands,
  },

  series: [{
    type: 'bar',
    data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4],

  }]
});

http://jsfiddle.net/wskt4hzz/


Related Query

More Query from same tag