data [5,3] should be shown in x-axis in one row and [2,2] in another x-axis point, but plotting [5,3] and [2,2]

Nope, it renders as it should be. Notice that your series has defined two points, like [{x: 0, y: 2}, {x: 1, y: 2}], which are clearly visible on the chart.

If you want to have those two values in one row of the xAxis, you will need to change your data into this format:

  series: [{
    name: 'John',
    data: [2, 3]
  }, {
    name: 'Jane',
    data: [2, 5]


Related Query