开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜