If you are using JQuery library, you can render the Gantt chart on a page using a usual syntax.
A standard Gantt chart with JQuery can be initialized as in:
A Gantt chart initialized with JQuery
$(".mygantt").dhx_gantt({
data:demo_tasks,
scales:[
{ unit:"year",step:1,format:"%Y"}
]
});
$("#gantt1").dhx_gantt().parse(tasksA);
<div class="mygantt" id='gantt1' style='width:100%; height:30%;'></div>
Related sample: jQuery integration
where:
A Gantt chart, initialized through jQuery call, uses the same configuration and API as the standard (initialized through JavaScript) Gantt chart does.
Related sample: jQuery integration
Back to top