Are we talking about Gantt or about Grid ?
In case of the Gantt widget, its not really possible now
Scale can contain multiple lines, with different time steps, but currently is limited to the known time units ( year/quarter/month/week/day/hour )
On other hand we are open to the idea to make it more customizable, we can provide a way to configure your own time units, so it would be possible to use something like
Please beware the code below will not work in the current version of Gantt and just some ideas how it can be in the next version
registerDateUnit("sprint", {
start: date => get_sprint_start(date),
end: date => get_sprint_end(date),
isSame: (a,b) => compare_sprints(a,b),
});
const scales = const scales = [
{ unit: "month", step: 1, format: "MMMM yyy" },
{ unit: "sprint", step: 1, format: v => get_sprint_number(v) },
{ unit: "day", step: 1, format: "d", css: dayStyle },
];
it is a bit verbose, but will allow dynamic scales.
another option, add a fixed set of dates for scales ( simple configuration, but no dynamic scales )
const scales = const scales = [
{ unit: "month", step: 1, format: "MMMM yyy" },
{ unit: "predefined", data:[
{ label:"sprint 12", start, end },
{ label:"sprint 13", start, end }
]},
{ unit: "day", step: 1, format: "d", css: dayStyle },
];
What do you think about such options ?