Modify x-values and date format
Hello,
this is my second post in this forum and I hope to have answers as soon as possible
I have 2 questions here :
1. How to have the same chart like in the print-screen but with less x-values (less dates).
2. And the second question is how to format the date in mysql format ("2011-03-01") to "d-m-y" format. I have tried :
Code:
$MyData->setAxisDisplay(1,AXIS_FORMAT_TIME,"d-m-y");
but it dont works.
And here is my 2 arrays with var_dump:
array(12) { [0]=> string(10) "2011-01-03" [1]=> string(10) "2011-01-04" [2]=> string(10) "2011-01-05" [3]=> string(10) "2011-01-06" [4]=> string(10) "2011-01-07" [5]=> string(10) "2011-01-10" [6]=> string(10) "2011-01-11" [7]=> string(10) "2011-01-12" [8]=> string(10) "2011-01-13" [9]=> string(10) "2011-01-14" [10]=> string(10) "2011-01-17" [11]=> string(10) "2011-01-18" }
array(12) { [0]=> string(4) "1.12" [1]=> string(4) "1.13" [2]=> string(4) "1.18" [3]=> string(4) "1.17" [4]=> string(4) "1.18" [5]=> string(4) "1.18" [6]=> string(4) "1.19" [7]=> string(4) "1.22" [8]=> string(4) "1.28" [9]=> string(4) "1.31" [10]=> string(4) "1.30" [11]=> string(4) "1.32" } 12
Thanks a lot !!!