Milliseconds in Gantt Chart possible?

G'day,

I am trying to use a Gantt chart with the following four test tasks:

var projectNewData = [
    {
        TaskID: 27064608523026975,
        TaskName: 'Task 1',
        StartDate: new Date(1613176377835),
        EndDate: new Date(1613176377844)
    },
    {
        TaskID: 27064608556581500,
        TaskName: 'Task 2',
        StartDate: new Date(1613176379976),
        EndDate: new Date(1613176379998)
    },
    {
        TaskID: 27064608455917964,
        TaskName: 'Task 3',
        StartDate: new Date(1613176373362),
        EndDate: new Date(1613176381312)
    },
    {
        TaskID: 27064608590136243,
        TaskName: 'Task 4',
        StartDate: new Date(1613176381836),
        EndDate: new Date(1619176381841)
    }
]

It displays as follows:

Regardless how much I zoom in, task 1 - 3 never get displayed as a bar, but always stay as a diamond.
Is it somehow possible to change that behaviour so that the user can see the duration as displayed with a bar?

I am trying to show a chart similar to something like this https://www.packettotal.com/app/timeline?id=6f4a5f6d7b3c4af88577fa79f8aa105d maybe a Gantt chart is not the best way to do this?

I would very much appreciate any suggestions.

Thanks,
Daniel



2 Replies 1 reply marked as answer

MS Monisha Sivanthilingam Syncfusion Team April 15, 2021 07:04 AM UTC

Hi Daniel, 
 
Thank you for contacting Syncfusion support. 
 
We would like to inform you a few points about Gantt. 
  1. Gantt currently supports the following duration units: Day, Hour and Minute.
  2. A task will be considered as a milestone task if its duration is zero.
  3. A task should have a minimum of one duration unit(Day/Hour/Minute) to be rendered as a bar.
  4. In the task data you shared, we noticed that the tasks did not have even a minimum duration of one minute. This is the reason why the tasks are rendered as milestones.
  5. No matter how many times you zoom in, the milestone tasks will not be rendered as bars, because they do not have even a minimum of one duration unit.
 
Hence, the milestones cannot be zoomed in to display as bars as they do not even have a minimum of one duration unit. 
 
For more information on milestones, please refer our Online Documentation. 
 
Please contact us if you require any further assistance. 
 
Regards, 
Monisha. 


Marked as answer

DA Daniel April 15, 2021 07:41 AM UTC

Thank you for the clarification Monisha.

Cheers,
Daniel

Loader.
Up arrow icon