I cant believe it; I did it again!
I promised, but can’t resist……. I should have known it!
But let’ start from the beginning.
O course all of you know very well (at least you should!) Teamwork, the wonderful project management software that Open Lab is developing since 2003, which is about to celebrate its fifth major release; finally I can confirm that we will be out at the end of June.
One of the major new features for version 5 is a full Gantt editor, browser based.
So this post is firstly a selection of available components, but …….. read until the end.
(no thanks! I’m in a hurry)
My ideal component should be based on jQuery, be LGPL (or an equivalent free-free license), be easy to configure, skinnable, multi-browser.
Here is what I found:
This component is very easy to use, simple and well documented.
It supports drag&drop and edit.
In my case the problem was that this component is tightly linked with the DHTMLX library and this is not my choice.
But if you are not already “linked” to a “framework” (like jQuery) maybe this could be your choice.
Regarding licensing, its both under GPL or commercial license. A fee of $699 for an enterprise license may be worth it.
I think this is the best component I found ever.
The user interface is smooth, responsive and well designed. It supports editing in place, zooming, buffering for large Gantt (what could be the meaning of a project with 1000 tasks? ) drag&drop etc.
The documentation is well done and complete…… sigh! it is based on EXTJs!
The second negative point is the licensing that doesn’t fit our needs. Only a commercial license is provided.
But if this component fits you, give it a try as it is a great component.
A little sad about leaving EXT gannt, I found
this component developed by Shlomy Gantz and Brian Twidt seems a little bit “rude” when compared with the two above, but undoubtedly it has the value of being built from scratch. No libraries! 100% sweat of the brow!
This component is written for data display, so if you want to drag&drop, edit, interact in some way, you must to write your code.
Documentation is…. concise, but complete. The license model is BSD.
The lack of the editing ability convinced me to pass over.
Finally a jQuery one!
As the name suggests it is only a viewer. Even the data model is a little weak, missing support for dependencies, but is one of the few components I found built upon jQuery. The project seems to be dying and the author Frank Grubbs did not release updates since 2 years ago.
There is an interesting work started from this project http://mbielanczuk.com/2011/06/jquery-gantt-chart/
but it still lacks some features.
I was scraping the bottom of the barrel, when I found this Japanese component
Done by Maro, this is a very light Gantt viewer; it doesn’t support dependencies, editing or other advanced features, but it can be used as a starting point.
I was really desperate at this point! What I was looking for was something like the component used on
Gantter is an online service, so not a part of this family of components, but I used it to set my requirements.
They don’t sell their component.
But searching for something similar I found interesting stuff in the far east:
If you are fluent with Chinese, maybe you’ll find working with this component easier than I did.
But Chinese apart this is a really full featured component, and I work with it for a while. It supports editing, drag&drop, dependencies, zooming, etc.
I didn’t understand the license type very well, but a free version seems available.
Documentation is available in Chinese only, and Google Translate can help you only partially.
It doesn’t use jQuery.
What I found really incredible is how Sunflower component is similar to the one used by the above online service…
And last but not least I found
This component is awesome! really! it can do everything.
Supports every kind of actions, notation, dependencies, colors, really everything.
There are lots of examples and the online documentation is complete and effective.
Scalability is not an issue at all for this component, there is an example with 1000000 rows and 1000 columns!
Also compatibility is wider than any marketer requirement could ever be (runs even on IE6).
Ok it is not based on jQuery, and the commercial license cannot fit every wallet, but a component like this requires years for developing it.
I have to cite the dojo library for completeness, but I didn’t play with this component.
Seems quite complete and the documentation is well done. Based on Dojo, not on jQuery.
I told you at the beginning:
I did it again!
I developed my own component!
- because none of the component mentioned above is LGPL/MIT
- none is built in jQuery
- I need to actively manage the data model because a Teamwork task/project’ one is more flexible than one representable with a Gantt
but mainly because I love to write code!
In this case the work seemed really hard so I worked in pair with Silvia, and this is actually a nice experience by itself!
Here’s the result of our efforts:
Even if the layout is clean and may seem barebones it actually supports a lot of features:
- in-place editing
- multiple dependencies
- full editing
- dates shortcuts
- css skin
- multiple browser
- resources editing
- multiple assignment
- export data in JSON format
- resize & scroll
- tasks status!
the last point is the mayor difference introduced in Teamwork task management model.
Teamwork focus is capturing work done in real time. To do this we built a tool that can model real time situations and easily change in time. This is in contrast with traditional project management methodology where projects are defined in advance in all details – not realistic for most work situations.
So Teamwork’s model of project, task trees, dates and task states is different from that of classical Gantts: tasks can be open beyond their due dates, task can be suspended inside their time scope, and so on. Also the automation due to dependencies has been somewhat simplified with respect to classical Gantt tools.
The introduction of task’s states lets our Gantt act as a sort of workflow. Let’s see what happens when you close a phase with dependencies:
here the first phase is open (second row: green-> open)
and the resource quick editor
You can try our component online here on http://gantt.twproject.com/
Source code is available on GitHub here. This component is release under MIT license.
In the next post I’ll describe in detail how to use the component code, stay tuned.
The complete link collection for this article is in a Licorize booklet: http://licorize.com/projects/rbicchierai/JS-Gantt-editor