Ignacio Vazquez
Ignacio Vazquez

Reputation: 544

Highcharts: multiple series columns by year

I want to render 2 column series grouping by year.

It works well if both series have data for all xAxis points (year). For example this example plots data for both series in 2012 and 2013 and works well.

But what happens of I remove 2013 from series 1 and 2012 for series 2, this is the result.

I know that adding null values and missing years will solve the problem, but may be there is another solution.

Upvotes: 0

Views: 258

Answers (1)

Sebastian Bochan
Sebastian Bochan

Reputation: 37578

You should use pointRange parameter http://jsfiddle.net/Lsj8Lngr/1

 "column": {
    pointRange: 365 * 24 * 3600 * 1000,
  "colorByPoint": true,
  "grouping": true,
  "dataLabels": {
    "enabled": false,
    "crop": false
  }
},

Upvotes: 1

Related Questions