问题
I am about to see if Javascript in a HTML5 canvas is capable of building my own gantt chart. The chart should provide drag and drop. Is there a library that gives me a good basis? so I don't have to build everything from scratch.
回答1:
jsGantt
A fully featured gantt chart component built entirely in Javascript, CSS and AJAX. No images required.
Features include: Tasks & Collapsible Task Groups Dependencies, Task Completion, Task Color, Milestones, Resources, Dynamic Loading of Tasks, Dynamic change of format (day/week/month), Load Gantt from XML file.
You can view a live example at http://www.jsgantt.com
Some other libraries:
https://www.bryntum.com/products/gantt-for-extjs/
http://www.jsgantt.com/#tDownload
Hope this helps.
回答2:
Have you tried googling for some examples? There are dozens out there. jsgantt and dhtmlxgantt are the first two I found without too much trouble.
来源:https://stackoverflow.com/questions/10701325/how-to-build-my-own-gantt-chart-with-js