I would like to add some more graphical statistics to the Home page, for instance a bar graph with the number of bugs reported per month. Could you give me some guidelines ?
the function 'grab_data' is more or less clear to me, but the function 'build_image' is quite unclear...
Also, how do you get the date back in m-d-Y format ? the format from the db (1043845059) is not familiar to me.
thanks a lot!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The build_image function would probably be much clearer after reading through the jpgraph documentation -- it basically calls the jpgraph functions for building a pie chart.
The time values stored in the db are epoch seconds, or number of seconds since 1970-01-01 00:00:00. Check out http://www.php.net/date for info on converting epoch timestamps to other formats.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I would like to add some more graphical statistics to the Home page, for instance a bar graph with the number of bugs reported per month. Could you give me some guidelines ?
the function 'grab_data' is more or less clear to me, but the function 'build_image' is quite unclear...
Also, how do you get the date back in m-d-Y format ? the format from the db (1043845059) is not familiar to me.
thanks a lot!
The build_image function would probably be much clearer after reading through the jpgraph documentation -- it basically calls the jpgraph functions for building a pie chart.
The time values stored in the db are epoch seconds, or number of seconds since 1970-01-01 00:00:00. Check out http://www.php.net/date for info on converting epoch timestamps to other formats.