duration_unit

sets the duration unit

string duration_unit;

Values

  • "minute", "hour", "day", "week", "month", "year"
  • Example

    gantt.config.duration_unit = "hour";//an hour
    gantt.config.duration_step = 3; 
    //so if task.duration = 2, the task will long 6 hours


    Default value:

    "day"
    See also
    Back to top