A React sample demonstrating the Syncfusion React Gantt Chart with task data, subtasks, custom columns, and dependency mapping.
- Renders a Syncfusion Gantt chart in React
- Uses
@syncfusion/ej2-react-gantt - Displays subtasks, dates, duration, and progress
- Maps task data fields to the Syncfusion model
- Supports timeline view updates via
timelineSettings
- Node.js (LTS or later)
- npm
npm installnpm startOpen http://localhost:3000.
src/App.tsx renders the GanttComponent using a task field mapping configuration and local sample data (for example, src/data.ts or src/data.js). The Gantt chart uses this configuration to display the timeline, columns, and task hierarchy.
Mapped fields:
TaskIDTaskNameStartDateEndDateDurationProgresssubtasksPredeceesor
Timeline behavior can be adjusted using the timelineSettings property on the GanttComponent.
<GanttComponent
dataSource={projectData}
taskFields={taskValues}
timelineSettings={{ timelineViewMode: 'Day' }}
>This sample focuses on core Syncfusion Gantt functionality and serves as a starting point for adding features such as editing, sorting, and filtering.