For optimized visuals we enabled several scales like hourly scale with a step of 2 hours and subscales day and month. This works fine in the browser. When exporting to PDF or PNG the date of the day is displayed in where the hours should be like 0/ 2/ 4/ … The days and months are displayed correctly.
Try to use gantt.exportToPNG({ raw:true });
By default, export can’t include custom templates for scales. In raw mode, export must be exactly the same as Gantt in a browser.
Hi, exporting by using gantt.exportToPNG({raw:true}) produces an empty image. This is the same for exportToPDF. I really appreciate a solution to export displaying the step width correctly.
Replace /apps/owncollab_chart/js/commercial/api.js with a content of export.dhtmlx.com/gantt/api.js
You are using an old version of api.js which doesn’t support raw mode, updating to new js file must resolve the issue.