Hi! On 03/05/2008 03:51 PM David Coallier wrote: > On Tue, Mar 4, 2008 at 5:58 PM, Björn Dieding <[EMAIL PROTECTED]> wrote:
>> In concrete: >> >> Data should be come from a numeric array or iterator. If you use >> the name of the data row as a key for this array you end up in >> problems since not all chars are allowed as an array key. >> >> One data row should be a php object / structure. > I agree with you here the biggest challenge is not the code itself > but making it's api usuable :) Finding a good format for the dataset > is crucial. > > Any special ideas ? If not I'll try to come up with something. I > especially like your iterator idea, could be much simpler and cleaner > (a bit slower though but still solid) AFAIK Gantt charts [1] most importantly include dependencies between tasks and projects. This means, that a Gantt chart actually visualizes a dependency graph [2]. Therefore I'd highly recommend to use a graph structure [3] for the datasets. I'd then go the way and allow users to define buffer-times for project tasks (before and after) to allow them to take more influence in the graphs appearance. You then just need to perform a topological sort on the incoming graph and then "just" render the result. :) HTH! Cheers, Toby [1] http://en.wikipedia.org/wiki/Gantt [2] http://en.wikipedia.org/wiki/Dependency_graph [3] http://en.wikipedia.org/wiki/Directed_acyclic_graph -- Mit freundlichen Grüßen / Med vennlig hilsen / With kind regards Tobias Schlitt (GPG: 0xC462BC14) eZ Components Developer [EMAIL PROTECTED] | eZ Systems AS | ez.no -- Components mailing list [email protected] http://lists.ez.no/mailman/listinfo/components
