Our state of the art Gantt chart


Post by bensullivan »

Hi

1. Can you embed a gantt within another gantt (for example if you had a programme – can you have the programme gantt and then also have linked and show the underlying project gantts?)
2. Can you pass through a variable to each task in the gantt chart to drive a colour, for example if the overall project is a healthy green status a variable would pass through indicating overall health is green, similar if it was amber or red.
3. For the resource picker – can you pick a person as well as just picking a role, ie you may not know the person to assign yet but know the role you need
4. There is mention of importing from ms project but can you export as well?

Thanks

Ben

Post by Maxim Gorkovsky »

Hello.

1. You can have multiple gantt charts on the same page, yes. Gantt view is a subclass of a widget, which means it should be possible to render it into any given DOM element. How do you plan to show multiple charts? In a popup window or some other way?

2. If we are talking about all tasks in the gantt chart, it might be better to set color using CSS selector rather than iterating over all records. Smth like:
.b-gantt.b-gantt-valid-project .b-gantt-task {
  background-color: blue;
}
.b-gantt-valid-project class can be added at the point when you know project became valid.
Or you can still iterate tasks using traverse method.

3. Tasks can be assigned with instances of ResourceModel (and subclasses) available in the gantt.resourceStore. This means if you want to assign a role - role should be added to resource store as well as particular resources. You can extend the resource model and provide additional fields that would allow you to tell resource from a role. In the advanced demo you will find how to extend task model. Same approach applies to resource as well.

4. We do not support exporting to ms project. We use MPXJ library and I presume it is capable of generating project as well as reading them. You can implement it yourself or hire us to do that for you. In which case please contact sales at bryntum.com for a quote.

Post Reply