Our state of the art Gantt chart
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
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' }
],
That would be perfect Mats - when can you ship it
That's awesome news Mats, thank you.
Hi Mats,
Did this make it in v5.4? Just seen the alpha release email but didn't see this mentioned.
Thank you.
Not just yet, almost done though so should make it to 5.4 GA.