PHP: Advice on gantt-type chart
I have an app that I've developed that has time entries. The time entries have a start date (datetime), an end date(datetime), and are associate开发者_开发问答d with a task. Time entries typically range from a couple of minutes to a couple of hours and would be being recorded during the day. Each time-entry has a description.
The type of chart I want to create would be similar to a gantt chart. It would show a days time range, ranging from the time of the start of the first time entry to the end date of the last.
8am 9am 9:15am 10:05am
Task 1 |---------- --
Task 2 | ----- --
Task 3 | ---------- ----
I've used fusioncharts but I'd like to move away from them. Has anyone created a chart similar to this one that can give me some advice?
Thanks in advance,
Billy
The best Javascript tool I know of for this sort of thing is Timeline.
The example on the above link shows it mainly being used for points in time, but it can also be used for periods of time as per a gantt chart. (scroll around the example to see some)
It's a Javascript tool, but you should be able to use PHP or another language to populate the data into it.
Oh, and it's open source as well. :-)
Hope that helps.
精彩评论