Can anyone suggest the right way of writing php code for formatting above array in xAxis? I get error while trying to create a Highchart in server side, using php script. Anyone using PHP script to create Highchart options?
If I use javascript code, it works fine. But I need it in server side and trying to print in a pdf. So JS is not suitable for me.
My array looks like below:
Array
(
[0] => Array
(
[x] => 1442851200
[y] => 645.73
[text] => A-17-5,CHANGKAT DUTA KIARA, KIARA
VILLE, 504802,400 sq. ft.
)
)
My formatting code is given below:
'xAxis' => array(
'type' => 'datetime',
'dateTimeLabelFormats' => array(
'month' => '%b \'%y',
'year' => '%Y'
),
)
I am getting (xAxis) below result with my formatting code:
I expect xAxis like below:

