I am implementing Highcharts in my application. It needs data in specific format.
The data in my table is as follows

The javascript needs data in below format

When I var_dump my x_axis array and y_axis array, I get below result

Which php functions should I use to format my array elements and pass to that JavaScript in that format?
data:[
[<? echo PHP_some_function(" ' ", x_axis) ?>, <? echo (y_axis) ?>] //quotes for x, no quotes for y value
] //Moreover it should run for all the values in x_axis and y_axis
I need some logic here..
My final graph would look like
