gantt.config.autosize = 'x';
<script src="https://docs.dhtmlx.com/gantt/codebase/dhtmlxgantt.js?v=6.0.0"></script>
{
Use the link below to share the snippet