Our state of the art Gantt chart


Post by rayudu.pasumarthy »

Hi,

We are currently using the Bryntum Gantt Timeline from the example demo: (https://bryntum.com/examples/gantt/timeline/)

The timeline considers weekends as part of the timeline. We used the following function to disable weekends in the gantt:

const oneDayInSeconds = 1000 * 60 * 60 * (24) * 1;
      timeline.timeAxis.filter({
        id: 'hideWeekendFilter',
        filterBy: tick => {
          let weekday = true;
          if ((tick.duration >= oneDayInSeconds && tick.duration <= oneDayInSeconds) && (tick.startDate.getDay() == 6 || tick.startDate.getDay() == 0)) {
              weekday = false;
          }
          return weekday;
        }
      });

After entering the above function in the console of the example demo timeline, the weekends are still considered. Can we disable the weekends for the timeline?

Best regards,
Rayudu.


Post by alex.l »

Did you configure the timeAxis to be not continuous?
https://bryntum.com/docs/gantt/api/Scheduler/data/TimeAxis#config-continuous

All the best,
Alex


Post by rayudu.pasumarthy »

Hi Alex,

On adding continuous config to the timeline, the tasks disappear from the timeline.

timeAxis: {
continuous: false,
},
continuous_timeline.png
continuous_timeline.png (119.32 KiB) Viewed 416 times

Regards,
Rayudu.


Post by alex.l »

I see, there is a problem that we have to investigate. Thank you for your questions! Here is a ticket: https://github.com/bryntum/support/issues/4067

All the best,
Alex


Post Reply