You must be logged in to post your query.
Home › Forums › Chart Support › Date pass throw php
i want to pass date in array but it not pass correctly please help me
I used this one
array_push($dataPoints_1, array(“x”=> ‘new Date(‘.$year.’, ‘.$month, “y”=> $order_total));
$phpDate = date("Y-m-d h:i:sa");
$phpTimestamp = strtotime($phpDate);
You also need to set xValueType property to ‘dateTime’ as x-value will be a timestamp.
You must be logged in to reply to this topic. Login/Register