Show custom classes and images when exporting

I’m trying to export my Gantt chart to PNG and PDF with exportToPNG and exportToPDF but some information doesn’t show up, like resource hour indicators (red and green circles), and avatar pictures of the resources.
Is there a way to show such information onto exporting?

Hello Diego,
You need to include the styles in the header parameter:
It is necessary because the export module/server doesn’t know about the styles you use. If there are images, they should be available through direct links.

Here are examples of how it might be done:

1 Like