This is a feature request from our client.
We are generating gantt diagrams for multi-year projects, thus our diagrams are quite large. It would be very helpful for us to display only relevant data if empty timeline columns could be collapsed.
Consider the two example screenshots attached:
- The project actually starts on 18.10.2012, but since I have chosen the "year" view, it displays the first 9 months on the year as well. This also applies when you have a date early in the next year, e.g. 10.01.2016, where the entire year of 2016 would be show
- Between the third milestone and the one displayed on the screenshot are 7 months where nothing happened in the project
I envision this could be solved nicely by introducing a setting in the "views" property defining a threshold after which the date cols should be collapsed. By putting it in the "views" section, it would work regardless of the view.
Example:
views: [
{
type:
'month'
,
slotSize: 56,
// in month view, this would mean 4 weeks
collapseColumnThreshold: 4,
collapseColumnTemplate:
'...'
},
{
type:
'year'
,
slotSize: 50,
// in year view, this would mean 2 months
collapseThreshold: 2,
collapseColumnTemplate:
"#= kendo.toString(collapseStart, 'MMM') + ' - ' + kendo.toString(collapseEnd, 'MMM') #"
}
],