Gantt Chart

Tasks as bars on a calendar — groups that fold, progress, milestones and a line for today, scrolled and zoomed from days to quarters. The timeline layout puts every task of a group on one lane.

Part of @tectra-ng/charts (npm install @tectra-ng/charts, also included in tectra-ng).

Features10APIThemingAccessibility

Basic

Tasks sit under their groups with a summary bar each; a group folds from its header. Bars show the progress, diamonds are milestones and the red line is today. Hover or focus a bar for its dates, length and progress.

Task
Brief and goals
User research
Flows and wireframes
Visual design
Design review
API
Web app
Beta release
Arrow keys move between tasks · + and − zoom · Ctrl and the wheel zoom at the pointer

Timeline

layout="timeline" puts every task of a group on one lane — bookings, shifts, releases. Names go inside the bars; color paints one task.

Timeline
Room A
Room B
Room C
Arrow keys move between tasks · + and − zoom · Ctrl and the wheel zoom at the pointer

Zoom

zoom is two-way: day, week, month or quarter. Switch it in the toolbar, with + / − on a focused bar or with Ctrl (⌘) and the wheel at the pointer.

Task
Search revamp
Billing v2
Offline mode
Tablet layout
Public launch
Reports
Arrow keys move between tasks · + and − zoom · Ctrl and the wheel zoom at the pointer

Events

taskClick reports the clicked task with its start and its exclusive end; groupToggle reports a folded or opened group.

Task
Laptop and access
Codebase tour
First pull request
Demo day
Arrow keys move between tasks · + and − zoom · Ctrl and the wheel zoom at the pointer

Click a bar or fold a group.

Compact

Without the toolbar, bar names and the today line ([today]="null"), and with maxHeight the rows scroll under the sticky header.

Task
Ticket 101
Ticket 102
Ticket 103
Ticket 104
Ticket 105
Ticket 106
Ticket 107
Ticket 108
Ticket 109
Ticket 110
Ticket 111
Ticket 112
Arrow keys move between tasks · + and − zoom · Ctrl and the wheel zoom at the pointer

Loading and empty

loading shows skeleton rows; empty tasks show "No data".

Task
No data
Arrow keys move between tasks · + and − zoom · Ctrl and the wheel zoom at the pointer

Accessibility

The bars are one tab stop: ↑/↓ move between rows, ←/→ between bars, Home / End to the ends, Enter clicks, + / − zoom. Every bar has an accessible name with its dates, length and progress; the region is named by a summary with the date range.

Task
Code freeze
Regression tests
Release notes
Release
Arrow keys move between tasks · + and − zoom · Ctrl and the wheel zoom at the pointer

Design tokens

dt sets the row and bar height, the radius, the label column, the progress track, the weekends and the today line of one chart.

Task
Plan
Build
Ship
Arrow keys move between tasks · + and − zoom · Ctrl and the wheel zoom at the pointer

Pass through

pt reaches the parts — toolbar, scroll, head, scale, row, group, label, lane, bar, milestone, today and more.

Task
Collect
Process
Arrow keys move between tasks · + and − zoom · Ctrl and the wheel zoom at the pointer

Unstyled

unstyled removes the tectra styles: the sticky layout, the bars, the keyboard and the tooltips stay, ready for your own CSS.

Task
One
Two
Arrow keys move between tasks · + and − zoom · Ctrl and the wheel zoom at the pointer