开发者

Pchart - Date format

开发者 https://www.devze.com 2023-02-14 06:06 出处:网络
I want to format a date array in mysql fo开发者_StackOverflowrmat (\"2011-03-01\") to \"d-m-y\" format in Pchart.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消