1

I want to format a date array in mysql format ("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.

Bizboss
  • 7,792
  • 27
  • 109
  • 174

1 Answers1

1

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.

doep
  • 113
  • 4