DHTMLX Docs & Samples Explorer

Read-only chart

To create a read-only chart, you should call setEditable(false) method in your initialization code. User will not be able to edit any tasks in the chart. It is useful to display final results on your dashboard for example.

<div style="width:950px;height:620px;position:absolute" id="GanttDiv"></div>
<script>
        var gantt = new GanttChart();
        gantt.setImagePath("imgs/");
        gantt.setEditable(false);
        gantt.create("GanttDiv");
        gantt.loadData("data/chart1.xml",true,true);
</script>