Request new features or modifications


Post by cho jaehee »

Hello, happy new year!

I have questions about baselines and the dataset.json file.
Please refer to the attached file for the problematic screen.

화면 캡처 2025-01-03 101531.png
화면 캡처 2025-01-03 101531.png (66.85 KiB) Viewed 355 times

Looking at the screen, the date values for both baselines and tasks are displayed in the same format (yyyy-MM-dd). However, it appears that baselines seem to be missing a day. Upon investigation, I found that while the task time is displayed as 9 to 6 based on the intervals value in the dataset.json file, the baselines are displayed as ending at 00:00. This gives the impression that a day is missing.

Here are my questions:

Is it possible to set the calendar for baselines in the dataset.json file? I’ve tried various approaches, but they don’t seem to work.
Is there a specific way to assign time to baselines?
Thank you!


Post by tasnim »

Hi,

Baseline doesn't support calendars but it does support time (for example : https://bryntum.com/products/gantt/docs/api/Gantt/model/Baseline#field-startDate)
You can check all the fields available for baseline here https://bryntum.com/products/gantt/docs/api/Gantt/model/Baseline
You could set the start/end date for baseline.

Here is a codepen demo for you https://codepen.io/dv-auntik/pen/GgKOryX?editors=0010

If you have any other questions or concerns, please don't hesitate to reach out to us :)


Post by cho jaehee »

Hello,

As shown in the attached image from the previous question, we use the business calendar type and display task times based on the intervals values. Does this mean that baselines must have the time explicitly specified in the tasks data to be displayed correctly?

Is it possible to add a feature in the future that sets the interval values for baselines based on the calendarData values?


Post by ghulam.ghous »

Hey there,

I have opened a FR here https://github.com/bryntum/support/issues/10563 but please be aware it may not be implemented soon as this is the first such request we have received. And yes you will have to explicitly set the time for baselines.


Post Reply