I have 2 highcharts like this:http://jsfiddle.net/bqnkeLx9/
And I want to be able combine them into something like this: http://jsfiddle.net/gy2yo184/
Basically, is there an easy way to join 2 arrays together based on another array?
var category1 = [1,2,4,6,9]
var arr1 = [1,2,3,4,5]
var category2 = [1,3,6,8]
var arr2 = [6,7,8,9]
//do something to end with:
var allcategories = [1,2,3,4,6,8,9]
arr1 = [1,2,0,3,4,0,5]
arr2 = [6,0,7,0,8,9,0]
or maybe there is an easier way to plot this?