Zum Hauptinhalt springen

GitLab Gantt Chart Component Demo

This page demonstrates the GitLab Gantt Chart component that can fetch and display GitLab issues in a Gantt chart timeline format.

Basic Examples​

Weekly View Example​

Loading GitLab Gant data...

Daily View Example (Default)​

Loading GitLab Gant data...

Props Reference​

PropTypeDefaultDescription
gitlabUrlstring-GitLab instance URL (fallback only)
apiTokenstring-Deprecated and ignored (proxy is used)
projectIdstring/number-Project ID or path
startDatestringTodayStart date (ISO format)
durationMonthsnumber3Timeline duration in months
labelsstring-Comma-separated labels filter
milestonesstring-Comma-separated milestones filter
autoMilestonesbooleanfalseAuto-filter by period milestones
chartTitlestring-Optional chart title
showLabelsbooleanfalseShow labels column
showMilestonesbooleanfalseShow milestones row
groupBystring-Group by field (e.g., 'milestone ASC')
statestring'opened'Issue state filter
filterByStartDueDatebooleanfalseFilter issues by start and due date presence
showOnlyWeeksbooleanfalseShow weeks instead of individual days

Features​

Timeline Visualization​

  • Day Headers: German single-letter day names (M, D, M, D, F, S, S)
  • Week Headers: Week numbers (KW 21, KW 22) with date range tooltips (when showOnlyWeeks={true})
  • Weekend Highlighting: Weekends shown in red (day view only)
  • Current Indicators: Today marked with red dotted line (day view), current week highlighted with yellow background in header and red vertical line in timeline rows (week view). When current week intersects with issue work periods, both blue progress line and red current week line are shown together.
  • Progress Bars: Blue horizontal line for active issue periods

Date Handling​

  • Start Date: Uses issue start_date or defaults to today
  • Due Date: Uses issue due_date or defaults to start_date + 6 days
  • Plan Date Override: Extracts dates from issue description patterns
    • _PLANSTART:YYYY-MM-DD_ overrides start date
    • _PLANDUE:YYYY-MM-DD_ overrides due date
  • Sorting: Issues sorted by start date, then alphabetically

Responsive Design​

  • Desktop: Full Gantt chart with horizontal scrolling
  • Mobile: Vertical layout optimized for small screens
  • Fixed Columns: Task names stay visible during scroll