ANTZ79
#1
Hi,
I’m exporting to PDF using custom data (parameter data) .
The print out is always display scale in days, it it possible to change scale to week ?
gantt.exportToPDF({
name: fileName,
header: header,
config: {
columns
}
,data: {
data
}
});
Best Regards
Andreas
ramil
#2
Hello Andreas,
You can specify the scales
configuration the same way you do with the columns
configuration:
gantt.exportToPDF({
data,
config: {
scales: [
{ unit: "year", step: 1, date: "%Y" },
{ unit: "month", step: 1, date: "%F" },
{ unit: "week", step: 1, date: "%W" },
],
columns: gantt.config.columns
}
});
Here is the snippet:
https://snippet.dhtmlx.com/i0o3117u