How to create multiple category in xAxis or yAxis in a chart?

I'm making a chart with a pivot by JS:

Currently, the chart is working well when the pivot has 1 row and one column. But when the pivot has 2 row and one column, it is not working.
I want to display it with more categories on the xAxis, yAxis as this example:

However, I found that the support was only in ASP / .NET. Have you supported it on JS?