Our state of the art Gantt chart


Post by paul.mather »

Hello,
Do you support displaying the baseline fields on the grid so on the grid table view you could have:

Name | Duration | Start | Finish | Baseline 1 Start Start | Baseline 1 Finish | Baseline 1 Duration | Start Variance | Finish Variance

I can't see this in any demos you have. If this is not possible, is this a feature you are planning to support soon?
Thank you
Paul


Post by mats »

We don't have those out of the box but we will for sure consider adding them. Until then, you could add those columns easily, something like:

import ColumnStore from '../../Grid/data/ColumnStore.js';
import GanttDateColumn from '../../Gantt/column/GanttDateColumn.js';
import '../../SchedulerPro/widget/StartDateField.js';

/**
 * @module Gantt/column/BaselineStartDateColumn
 */

/**
 * A column that displays the task baseline start date.
 *
 * @extends Gantt/column/BaselineStartDateColumn
 * @classType baselinestartdate
 * @column
 */
export default class BaselineStartDateColumn extends GanttDateColumn {
    baselineIndex = 0;

    static get $name() {
        return 'BaselineStartDateColumn';
    }

    static get type() {
        return 'baselinestartdate';
    }

    static  defaults  = {
        editor : false,
        text   : 'L{Baseline Start}'
    };

    defaultRenderer({ record }) {
        return super.defaultRenderer({ value : record.baselines.getAt(this.baselineIndex)?.startDate });
    }
}

ColumnStore.registerColumnType(BaselineStartDateColumn);
const gantt = new Gantt({
    appendTo : 'container',

dependencyIdField : 'wbsCode',

project,

columns : [
    { type : 'wbs' },
    { type : 'name' },
    { type : 'baselinestartdate' },
    { type : 'baselineenddate' }
],

Post by paul.mather »

Thanks Mats


Post by mats »

Something like this?

Attachments
baselines.mov
(11.37 MiB) Downloaded 23 times

Post by paul.mather »

That would be perfect Mats - when can you ship it :)


Post by mats »

Hopefully v5.4.


Post by paul.mather »

That's awesome news Mats, thank you.


Post by paul.mather »

Hi Mats,
Did this make it in v5.4? Just seen the alpha release email but didn't see this mentioned.
Thank you.


Post by mats »

Not just yet, almost done though so should make it to 5.4 GA.


Post by paul.mather »

Thank you.


Post Reply