Export is a PRO feature. See licensing and trial info.
- Server-side export — PDF, PNG, and Excel (XLSX) are generated by the SVAR hosted export service.
- Client-side MS Project — import and export
.xmlfiles in the browser with no server round-trip.
The export-data Action
Trigger an export by calling api.exec("export-data", config) where config is an IExportConfig object.
PDF Options
PNG Options
Excel Options
Server-Side Export Example
The export service URL includes the library version so the server renders the chart with a matching version of the Gantt:Overriding Gantt Config for Export
UseganttConfig to pass Gantt props that apply only during the export render. This is useful for adjusting cell widths or other layout properties:
Custom Styles in Exports
Pass a CSS string viastyles (or per-format pdf.styles / png.styles) to inject custom styles into the exported output. This is especially useful for styling markers:
MS Project Import/Export
MS Project XML files can be imported and exported entirely in the browser — no export service URL is required.Export to MS Project XML
Import from MS Project XML
Read the file using the browserFileReader API, then pass the XML string to import-data:
MS Project import/export (
format: "mspx") is processed client-side. The url field is not required for this format.