Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
445
Customizing Gantt Chart
posted

Hi all,

how can I customize a Gantt Chart with following requirements:

1.) The distance between the series must be smaller

2.) The height of a Series must be smaller

I use SeriesSpacing and ItemSpacing, but without success. This properties increase only the distances.

Regards

  • 7305
    Suggested Answer
    posted

    Adding a series in the same task will give you similar effect such as:

    GanttItem task1 = seriesA.Items.Add("Task 1");
            task1.Times.Add(DateTime.Parse("11/01/2004 12:00 PM"), DateTime.Parse("11/02/2004 12:00 PM"));
            ...
            task1.Times.Add(DateTime.Parse("11/02/2004 12:00 PM"), DateTime.Parse("11/09/2004 12:00 PM"));
     ...

    Also notice that the end date of the first task is the same as the beginning date of the second task so they don't overlap.