Angular UI Components Documentation
The Angular Gantt shows tasks, dependencies, milestones and resources on a Gantt chart with a task tree. This guide adds the Angular Gantt (jqxGantt) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-ngjqwidgets-ng/jqxgantt 
In an Angular project (to start one, see Getting started with Angular), add the package with the Angular CLI. It asks for a theme and adds the styles to angular.json:
ng add jqwidgets-ng
Components are standalone: add jqxGanttModule to the imports of the component that uses it.
import { Component } from '@angular/core';
import { jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
templateUrl: './app.html'
})
export class App {}
The source of the live Default Functionality demo.
<jqxGantt [taskColumns]="taskColumns" [height]="'auto'" [source]="source" #gantt></jqxGantt>
<br/>
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent } from 'jqwidgets-ng/jqxgantt';
import { CommonModule } from '@angular/common';
import { jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
imports: [CommonModule, jqxGanttModule],
selector: 'app-root',
templateUrl: './app.html'
})
export class App {
readonly gantt = viewChild.required<jqxGanttComponent>('gantt');
taskColumns: any[] = [
{ label: 'Tasks', value: 'label', size: '60%' },
{
label: 'Duration (hours)',
value: 'duration',
formatFunction: (date: any) => parseInt(date)
}
];
source: any[] = [
{
label: 'PRD & User-Stories',
dateStart: '2026-01-06',
dateEnd: '2026-03-06',
class: 'product-team',
type: 'task'
},
{
label: 'Persona & Journey',
dateStart: '2026-02-25',
dateEnd: '2026-04-26',
class: 'marketing-team',
type: 'task'
},
{
label: 'Architecture',
dateStart: '2026-04-07',
dateEnd: '2026-05-12',
class: 'product-team',
type: 'task'
},
{
label: 'Prototyping',
dateStart: '2026-05-13',
dateEnd: '2026-06-27',
class: 'dev-team',
type: 'task'
},
{
label: 'Design',
dateStart: '2026-06-28',
dateEnd: '2026-07-28',
class: 'design-team',
type: 'task'
},
{
label: 'Development',
dateStart: '2026-07-28',
dateEnd: '2026-09-06',
class: 'dev-team',
type: 'task'
},
{
label: 'Testing & QA',
dateStart: '2026-09-07',
dateEnd: '2026-10-06',
class: 'qa-team',
type: 'task'
},
{
label: 'UAT Test',
dateStart: '2026-10-08',
dateEnd: '2026-11-07',
class: 'product-team',
type: 'task'
},
{
label: 'Handover & Documentation',
dateStart: '2026-10-13',
dateEnd: '2026-11-27',
class: 'marketing-team',
type: 'task'
},
{
label: 'Release',
dateStart: '2026-10-28',
dateEnd: '2026-12-27',
class: 'release-team',
type: 'task'
}
];
}Options are inputs, bound with [name]="value".
Events are outputs named on plus the event name with a capital first letter. For example, change: This event is triggered when a Task is selected/unselected.
<jqxGantt (onChange)="onChange($event)"></jqxGantt>
onChange(event: any): void {
console.log(event.args);
}
Get the component with a signal query and call its methods. For example, expand: Expands a collapsed project with tasks.
<jqxGantt #myGantt></jqxGantt>
import { Component, viewChild } from '@angular/core';
import { jqxGanttModule, jqxGanttComponent } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
templateUrl: './app.html'
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
run(): void {
this.myGantt().expand(0);
}
}