Posted 11 February 2021, 8:00 am EST
I have created a Gantt chart following this example https://www.grapecity.com/dataviewsjs/demos/DataViews/GanttView/GanttView/purejs and everything is working fine.
Now I am trying to make the TimeLineScale customizable but I cannot find any example on how to use IGanttOptions or how to create a Gantt object.
I have tried this without success:
const dataView = new DataView(document.getElementById(this.ganttId), data, columns, new GridLayout{...});
let g = new Gantt(dataView, { timeLineScale : "month" });
g.timeLineScale = "month";
Can you advice how to solve this?
Thank you