Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Zoom levels for the Gantt chart: days, weeks and months.
- A switch above the Gantt chart, next to the lanes, zooms it to Days, Weeks or Months, each with its own axis: the months and the days, the months and the weeks, or the months alone. Zooming happens in the browser, with no request to the server, and the day in the middle of the chart stays in the middle. The browser keeps each reader's level for each view, and the view's new Zoom setting is the level the chart opens at. The switch works from the keyboard and tells a screen reader which level is on. Dragging a bar still moves it by whole days at every level (#15).
The Zoom setting replaces the Width of a day. After updating, run the database updates, which turn each Gantt's width of a day into the level whose axis it showed (Days from 18 pixels up, Weeks below), then export the configuration: until then an import brings the width back, and the chart reads it the same way. For themes, the width of a day is now set per level in CSS, on .views-board-gantt[data-views-board-gantt-zoom="weeks"] and the other levels, rather than inline. The template no longer has show_days: it renders both the day and the week rows of the axis and the stylesheet shows the level's, so a theme that overrides views-view-gantt.html.twig takes the switch and both rows from the new template. The README covers it under "Zoom" and "Theming the chart".