score:2

Accepted answer

I am not 100% sure of exactly what values you want to go where, but the concept of how I would solve this, is as follows:

series: [{
  name: 'Series 1',
  data: [{x: 0, y: -19}, {x: 0, y: 10}, 
         {x: 1, y: -31}, {x: 1, y: 20}]
}, {
  name: 'Series 2',
  data: [{x: 0, y: 33}, {x: 0, y: -10}, 
         {x: 1, y: 56}, {x: 1, y: -20},]
}, {
  name: 'Series 3',
  data: [{x: 0, y: 10}, {x: 0, y: -23}, 
         {x: 1, y: 13}, {x: 1, y: -30}]
}]

Where we still have the same 3 series, but we explicitly state which category the values should belong to, i.e. x: 0 is category 1, and x: 1 is category 2.

Working JSfiddle example: https://jsfiddle.net/ewolden/kdszxjn3/6/


Related Query

More Query from same tag