Pchart - Date format
I want to format a date array in mysql fo开发者_StackOverflowrmat ("2011-03-01") to "d-m-y" format in Pchart.
I have tried :
$MyData->setAxisDisplay(1,AXIS_FORMAT_TIME,"d-m-y");
But don't change anything.
Thanks a lot.
Guess this is a bit too late :) The values in pChart needs to be in unix timestamp, so I suggest using strtotime before feeding the values to pChart. Then your call should work fine.
精彩评论