Overlapping timeline scales inside header on gantt export to pdf/png

Hello,

When i try to export gantt chart which has horizontal scroll visible and two scales (‘day’ and ‘month’) to pdf/png i got result with overlapping timeline headers.

I’m using Gantt enterprise 9.0.4 and export module 9.0.4.
I’ve tried to set smart_scales and smart_rendering to false but bug remains.
Scales are shown incorrectly only on export results.

Best regards,
David

Hello,
This is a known issue that will be addressed in the future. In the meantime, you can try disabling the sticky property for each scale before exporting the data, and then revert the changes afterward:

function exportData() {
    gantt.config.scales.forEach((scale) => {
        scale.sticky = false;
    })

    gantt.exportToPDF({
        raw: true
    });

    gantt.config.scales.forEach((scale) => {
        delete scale.sticky;
    })

    gantt.resetLayout();
}

Please see an example: DHTMLX Snippet Tool

1 Like

Hello Dawid,
The dev team fixed the issue with the sticky scale cells in the exported PDF files.
You can see that the issue is no longer reproduced in the following snippet:
https://snippet.dhtmlx.com/50dr4pxn

1 Like