/syncfusion-react:syncfusion-react-gantt-chartfrom Syncfusion React UI Components
Implement, configure, and customize the Syncfusion React Gantt Chart component. Use this when building project scheduling applications with task timelines, dependencies, resource management, and calendar-driven scheduling. Covers GanttComponent setup, task constraints, taskbar customization, filtering, sorting, Excel/PDF export, critical path analysis, milestones, predecessors, resource view, baseline tracking, and task calendar configuration.
Ships in Syncfusion React UI Components. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The Syncfusion React Gantt Chart (GanttComponent) is a powerful project management component for visualizing, scheduling, and managing tasks over a timeline. It supports auto/manual scheduling, task dependencies, resource planning, interactive editing, Excel/PDF export, and rich customization.
📄 Read: references/getting-started.md
GanttComponent with taskFields mappinggridLines prop ('Both' / 'Horizontal' / 'Vertical' / 'None')📄 Read: references/data-binding.md
DataManagertaskFields configuration (id, name, startDate, endDate, duration, progress, child)url + batchUrl)Query.addParams() in load eventAjax class (manual fetch)loadChildOnDemand={false}, hasChildMapping)actionFailure event📄 Read: references/task-scheduling.md
taskMode)Day, Hour, Minute, Week, and MonthtaskFields.durationUnit5 days, 2 weeks, 1 month)daysPerWeek and daysPerMonth conversion controls for week/month scheduling📄 Read: references/taskbar-draw.md
allowTaskbarDraw API and required editing setupStartDate, EndDate, and Duration📄 Read: references/task-dependency.md
taskFields.dependency in data source (string format: "2FS", "2FS+3d", "2SS+2h")"2FS,3FS")"2FS+3h", "2FS-1d")addPredecessor, removePredecessor, updatePredecessor)connectorLineWidth, connectorLineBackground)autoUpdatePredecessorOffset={true} — recalculate offsets on load to account for calendar rules (weekends, holidays)autoUpdatePredecessorOffset={false} — display original offsets even if not matching rendered lines (visual inconsistency possible)updateOffsetOnTaskbarEdit={true} — auto-recalculate offsets when dragging taskbars (default)updateOffsetOnTaskbarEdit={false} — preserve offsets; manual update required via dependency dialogactionBegin event with requestType === 'validateLinkedTask')
respectLink={true} — revert invalid edits to maintain dependency integrityremoveLink={true} — remove conflicting dependencies to allow editspreserveLinkWithEditing={true} — update offsets to maintain links (default mode)allowParentDependency={true} allows cross-parent dependencies; false restricts to siblings onlyallowedDependencyTypes={['FS', 'SF']} restricts which dependency types can be loaded, created, and edited.e-gantt-dependency-view-container CSS visibilityenablePredecessorValidation={false} disables auto-date validation based on predecessor links📄 Read: references/task-constraints.md
taskFields.constraintType and taskFields.constraintDatetaskMode📄 Read: references/timeline.md
timelineViewMode quick presets (Hour, Day, Week, Month, Year)unit, format, count, formatter)count (merge multiple units per cell)formatter (tier + mode aware)viewStartDate / viewEndDate (lock visible range)weekStartDay — controls which day starts a week column (0=Sun, 1=Mon…)updateTimescaleViewtimelineViewMode + refresh())showTooltiptimelineTemplate ({ date, value, tier })enableInfiniteTimelineScroll (extends the visible range while navigating with horizontal scrollbar or scroll arrows)previousTimeSpan() / nextTimeSpan()ZoomIn, ZoomOut, ZoomToFit)zoomingLevels (ZoomTimelineSettings)zoomIn(), zoomOut(), fitToProject()timelineUnitSizehighlightWeekends={true}timelineSettings.showWeekend (with noted limitations)📄 Read: references/columns.md
ColumnsDirective)valueAccessor (custom display values, concatenation)valueAccessor)enableSerialNumber + field: 'SerialNumber')treeColumnIndex)
queryCellInfocollapseAllParentTasks — collapse all on loadtaskFields.expandState — per-row initial expand/collapselocalStorageenableWBS + enableAutoWbsUpdate APIstaskFields.wbsPredecessorheaderTemplate for custom header renderingtreeGrid.textWrapSettings.wrapMode)getColumnByField + refreshHeader)editTemplatefrozenColumns, inject Freeze)📄 Read: references/column-interactions.md
allowResizing, inject Resize)
minWidth / maxWidth per columnallowResizing={false})resizeSettings.mode)reorderColumns, refreshColumns)resizeStart, resizing, resizeStopallowReordering, inject Reorder)
allowReordering={false})reorderColumns, reorderColumnByIndex, reorderColumnByTargetIndexcolumnDragStart, columnDrag, columnDropshowColumnMenu, inject ColumnMenu)
columnMenuClick eventshowColumnMenu={false})📄 Read: references/rows.md
queryCellInfo event
QueryCellInfoEventArgs with rowSpan, colSpan, cell, data, columncolSpan) and vertical spanning (rowSpan)rowDataBound📄 Read: references/managing-tasks.md
addRecord())mode: 'Dialog'), cell edit (mode: 'Auto'), taskbar dragallowTaskbarDraw)StartDate, EndDate, and DurationdeleteRecord(), showDeleteConfirmDialog)taskFields.segments, splitTask(), mergeTask())editType): stringedit, numericedit, datepickeredit, datetimepickeredit, dropdownedit, booleanedit
edit.params for min/max/step/format/dataSource per columnaddDialogFields, editDialogFields)UrlAdaptor (url + batchUrl)
added, changed, deleted arrays in the batch request bodyvalidationRules on ColumnDirective)
required, min, max, minLength, date, regex[fn, 'message'] callback pattern)📄 Read: references/filtering-searching.md
allowFiltering={true}, inject Filter)Parent, Child, Both, NonesearchSettings: fields, operator, ignoreCase)filterSettings.columns array)filterByColumn(), clearFiltering()📄 Read: references/sorting.md
sortSettings)📄 Read: references/selection.md
Self, Hierarchy, FilteredHierarchy)selectRow, selectCell)📄 Read: references/taskbar-labels-markers.md
tooltipSettings for taskbar, connector line, baseline, timeline)beforeTooltipRenderbaselineTemplate📄 Read: references/resources.md
resources property)taskFields.resourceInfo) — single or multiple with custom unitsviewType='ResourceView', resource groups)enableMultiTaskbar={true}) — multiple taskbars per collapsed resource rowshowOverAllocatedTasks={true})resourceFields.unit, resourceFields.group)queryTaskbarInfo📄 Read: references/toolbar-context-menu.md
Add, Edit, Delete, Update, Cancel, Search, ExpandAll, CollapseAll, Indent, Outdent, PrevTimeSpan, NextTimeSpan, ZoomIn, ZoomOut, ZoomToFit, CriticalPath, ExcelExport, CsvExport, PdfExport, ColumnChooser, Undo, Redo, SplitTask, MergeTaskUndo/Redo → UndoRedo; SplitTask/MergeTask → Edit; CriticalPath → CriticalPath; ExcelExport/CsvExport → ExcelExport; PdfExport → PdfExport; ColumnChooser → ColumnMenuItemModel; handle clicks via toolbarClick event (args.item.id)enableItems()📄 Read: references/toolbar-context-menu.md
enableContextMenu={true}; inject ContextMenu serviceAutoFit, AutoFitAll, SortAscending, SortDescending, TaskInformation, Add, Indent, Outdent, DeleteTask, Save, Cancel, DeleteDependency, Convert, SplitTask, MergeTaskcontextMenuItems array with target (.e-content or .e-gridheader)contextMenuClick event; control visibility via contextMenuOpen (args.hideItems)📄 Read: references/excel-export.md
📄 Read: references/pdf-export.md
📄 Read: references/holidays-working-time.md
holidays prop, HolidayModel, DayMarkers service)workWeek, includeWeekend)dayWorkingTime)taskFields.work, workUnit, task types: FixedWork / FixedDuration / FixedUnit)timezone prop, IANA timezone strings)📄 Read: references/calendar-settings.md
calendarSettings.projectCalendarcalendarSettings.taskCalendartaskFields.calendarIdhoursPerDay conversion and day-based duration recalculation📄 Read: references/splitter.md
splitterSettings.position — percentage or pixels)splitterSettings.columnIndex)splitterSettings.view — Default / Grid / Chart)setSplitterPosition())splitterResizeStart, splitterResizing, splitterResized)📄 Read: references/scrolling.md
width and height for scrollbar controlwidth='100%', height='100%' with CSS parent height)scrollToDate('MM/dd/yyyy'))ganttChartModule.scrollObject.setScrollTop(px))📄 Read: references/virtual-scroll.md
enableVirtualization={true}, VirtualScroll service)enableTimelineVirtualization={true}, requires projectStartDate / projectEndDate)treeGrid.filterModule.filteredResult)📄 Read: references/undo-redo.md
enableUndoRedo, UndoRedo service)undoRedoActions — full list of trackable actions and required servicesundoRedoStepsCount — history stack size'Undo' / 'Redo' buttons and Ctrl+Z / Ctrl+Y keyboard shortcutsundo() / redo() via component ref📄 Read: references/state-persistence.md
enablePersistence={true}, unique id prop, localStorage)id or clear localStorage entry)enableImmutableMode={true}, requires isPrimaryKey={true})loadingIndicator.indicatorType: 'Spinner' or 'Shimmer')showSpinner() / hideSpinner())📄 Read: references/localization-rtl.md
locale prop)L10n.load() with 'gantt' namespace keys)enableRtl={true})format='yMd', format='dd/MM/yyyy')format='C2', format='N2', format='P0')📄 Read: references/gantt-methods.md
autoFitColumns()cancelEdit(), openAddDialog(), openEditDialog()deleteRecord(), convertToMilestone(), changeTaskMode(), updateRecordByID(), updateRecordByIndex(), updateTaskId(), updateDataSource(), updateProjectDates()enableItems()expandByID(), expandByIndex(), collapseByID(), collapseByIndex()clearUndoCollection(), clearRedoCollection(), getUndoActions(), getRedoActions()getCurrentViewData(), getRecordByID(), getTaskByUniqueID(), getTaskInfo(), getTaskbarHeight(), getExpandedRecords(), getGanttColumns(), getGridColumns()getDurationString(), getWorkString()getRowByID(), getRowByIndex()removeSortColumn()selectCells()reorderRows()scrollToTask(), updateChartScrollOffset()📄 Read: references/calendar-settings.md
hoursPerDay for converting working hours to day-based duration valuescalendarSettings.projectCalendar for project-wide working rulescalendarSettings.taskCalendar for task-specific working rulestaskFields.calendarId for binding a task to a named calendar📄 Read: references/events.md
load, created, dataBound)actionBegin, actionComplete) with requestType reference tabletaskbarEditing, taskbarEdited, taskbarClickexpanding, collapsing, expanded, collapsedrowSelected, rowDeselected, cellSelected, cellDeselectedexcelExportComplete, pdfExportCompleteresizeStart, resizing, resizeStop, columnDragStart, columnDrag, columnDropargs.cancel = true)import * as React from 'react';
import { GanttComponent, ColumnsDirective, ColumnDirective, Inject, Edit, Toolbar, Selection } from '@syncfusion/ej2-react-gantt';
import { TaskFieldsModel, EditSettingsModel } from '@syncfusion/ej2-gantt';
import './App.css';
// In App.css:
// @import "../node_modules/@syncfusion/ej2-tailwind3-theme/styles/gantt/index.css";
const data = [
{
TaskID: 1, TaskName: 'Project Initiation',
StartDate: new Date('04/02/2024'), EndDate: new Date('04/21/2024'),
subtasks: [
{ TaskID: 2, TaskName: 'Identify Site Location', StartDate: new Date('04/02/2024'), Duration: 4, Progress: 50 },
{ TaskID: 3, TaskName: 'Perform Soil Test', StartDate: new Date('04/02/2024'), Duration: 4, Progress: 50, Predecessor: '2' },
{ TaskID: 4, TaskName: 'Soil Test Approval', StartDate: new Date('04/08/2024'), Duration: 0, Predecessor: '3FS', Progress: 50 },
]
}
];
const taskFields: TaskFieldsModel = {
id: 'TaskID',
name: 'TaskName',
startDate: 'StartDate',
endDate: 'EndDate',
duration: 'Duration',
progress: 'Progress',
dependency: 'Predecessor',
child: 'subtasks',
};
const editSettings: EditSettingsModel = { allowEditing: true, allowAdding: true, allowDeleting: true, allowTaskbarEditing: true };
function App() {
return (
<GanttComponent
dataSource={data}
taskFields={taskFields}
editSettings={editSettings}
toolbar={['Add', 'Edit', 'Delete', 'Cancel', 'Update', 'Search', 'ZoomIn', 'ZoomOut', 'ZoomToFit']}
height="450px"
>
<ColumnsDirective>
<ColumnDirective field="TaskID" width="80" />
<ColumnDirective field="TaskName" headerText="Task Name" width="250" />
<ColumnDirective field="StartDate" />
<ColumnDirective field="Duration" />
<ColumnDirective field="Progress" />
</ColumnsDirective>
<Inject services={[Edit, Toolbar, Selection]} />
</GanttComponent>
);
}
export default App;
<GanttComponent
editSettings={{ allowEditing: true, mode: 'Dialog' }}
>
<Inject services={[Edit]} />
</GanttComponent>
<GanttComponent
editSettings={{ allowEditing: true, mode: 'Auto' }}
>
<Inject services={[Edit]} />
</GanttComponent>
const ganttRef = React.useRef<GanttComponent>(null);
const addTask = () => {
ganttRef.current?.addRecord({ TaskID: 10, TaskName: 'New Task', Duration: 3 }, 'Below', 1);
};
<GanttComponent toolbar={['ExcelExport']} allowExcelExport={true}>
<Inject services={[ExcelExport, Toolbar]} />
</GanttComponent>
<GanttComponent toolbar={['PdfExport']} allowPdfExport={true}>
<Inject services={[PdfExport, Toolbar]} />
</GanttComponent>
<ColumnsDirective>
<ColumnDirective field="TaskName" validationRules={{ required: true }} />
<ColumnDirective field="Duration" validationRules={{ min: 1, max: 100 }} />
</ColumnsDirective>
const ganttRef = React.useRef<GanttComponent>(null);
ganttRef.current?.scrollToDate('04/28/2024');
<ColumnDirective field="TaskName" minWidth="100" maxWidth="400" allowResizing={true} />
const ganttRef = React.useRef<GanttComponent>(null);
// By field names:
(ganttRef.current as any).treeGrid.reorderColumns(['Duration', 'Progress'], 'TaskName');
// By index:
(ganttRef.current as any).treeGrid.reorderColumnByIndex(2, 0);
// In taskFields — map a boolean field that controls initial expand state:
const taskFields = { ..., expandState: 'isExpand' };
// Or collapse all on load:
<GanttComponent collapseAllParentTasks={true} .../>
| Feature | Service to Inject |
|---|---|
| Editing (add/edit/delete/taskbar drag) | Edit |
| Filtering | Filter |
| Sorting | Sort |
| Toolbar | Toolbar |
| Selection | Selection |
| Day Markers / Holidays / Event Markers | DayMarkers |
| Critical Path | CriticalPath |
| Excel / CSV Export | ExcelExport |
| PDF Export | PdfExport |
| Undo / Redo | UndoRedo |
| Column Menu | ColumnMenu |
| Context Menu | ContextMenu |
| Virtual Scrolling | VirtualScroll |
| Row Drag and Drop | RowDD |
| Column Reordering | Reorder |
| Frozen Columns | Freeze |
| Column Resizing | Resize |
Usage pattern:
import { GanttComponent, Inject, Edit, Filter, Sort, Toolbar, Selection } from '@syncfusion/ej2-react-gantt';
<GanttComponent ...>
<Inject services={[Edit, Filter, Sort, Toolbar, Selection]} />
</GanttComponent>
| Prop | Type | Purpose |
|---|---|---|
dataSource | object[] / DataManager | Task data (local or remote via DataManager) |
taskFields | TaskFieldsModel | Field mapping for task properties |
editSettings | EditSettingsModel | Enable add/edit/delete/taskbar editing |
toolbar | string[] | Toolbar items to render |
taskMode | Auto / Manual / Custom | Scheduling mode |
resources | object[] | Resource data collection |
resourceFields | ResourceFieldsModel | Resource field mapping |
allowSorting | boolean | Enable sorting |
allowFiltering | boolean | Enable filtering |
allowReordering | boolean | Enable column reorder |
allowResizing | boolean | Enable column resize |
allowExcelExport | boolean | Enable Excel export |
allowPdfExport | boolean | Enable PDF export |
undoRedoActions | string[] | Actions tracked by undo/redo |
timelineSettings | TimelineSettingsModel | Timeline tiers and unit config |
splitterSettings | SplitterSettingsModel | Grid/chart panel ratio |
highlightWeekends | boolean | Shade weekend columns |
holidays | HolidayModel[] | Mark holiday dates |
eventMarkers | EventMarkerModel[] | Vertical markers on timeline |
treeColumnIndex | number | Column index showing expand/collapse icons |
collapseAllParentTasks | boolean | Collapse all parent rows on initial load |
enableWBS | boolean | Auto-generate WBS codes from task hierarchy |
enableAutoWbsUpdate | boolean | Recalculate WBS codes after CRUD/sort/DnD |
frozenColumns | number | Number of left-pinned (frozen) columns |
enableMultiTaskbar | boolean | Show multiple taskbars per resource row |
allowTaskbarOverlap | boolean | Controls whether multiple taskbars overlap (true, default) or stack with extended row height (false) in resource rows |
viewType | string | 'ProjectView' or 'ResourceView' |
showColumnMenu | boolean | Show column-level menu (sort, filter, autofit) |
columnMenuItems | string[] | Restrict which column menu items are shown |
showColumnChooser | boolean | Enable column chooser dialog via toolbar ColumnChooser item |
allowSelection | boolean | Enable row/cell selection |
selectionSettings | SelectionSettingsModel | Selection mode (Row/Cell), type (Single/Multiple) |
gridLines | string | Grid lines style: 'Both' | 'Horizontal' | 'Vertical' | 'None' |
renderBaseline | boolean | Show baseline bars alongside actual taskbars |
baselineColor | string | CSS color for baseline bars |
baselineTemplate | function/string | Custom baseline rendering for planned schedules and advanced baseline layouts |
enableInfiniteTimelineScroll | boolean | Enable infinite horizontal timeline scrolling by extending the visible range as the user navigates |
enableCriticalPath | boolean | Highlight critical path tasks and connectors |
enableRtl | boolean | Enable right-to-left layout |
locale | string | Locale code (e.g. 'fr', 'de', 'ar') |
allowRowDragAndDrop | boolean | Enable row drag-and-drop reordering/reparenting |
enableImmutableMode | boolean | Only re-render changed rows on data updates (requires isPrimaryKey) |
enablePersistence | boolean | Persist UI state (sort, filter, column widths) to localStorage |
loadingIndicator | object | Loading animation type: { indicatorType: 'Spinner' | 'Shimmer' } |
workWeek | string[] | Working days, e.g. ['Monday','Tuesday','Wednesday','Thursday','Friday'] |
includeWeekend | boolean | Count weekends as working days for duration calculation |
timezone | string | IANA timezone for the Gantt (e.g. 'America/New_York') |
showOverAllocatedTasks | boolean | Highlight over-allocated resources in ResourceView |
enableUndoRedo | boolean | Enable undo/redo tracking (inject UndoRedo service) |
undoRedoStepsCount | number | Maximum undo/redo history steps (default: 10) |
enableVirtualization | boolean | Row virtualization for large data sets |
enableTimelineVirtualization | boolean | Timeline (horizontal) virtualization |
rowHeight | number | Uniform row height in pixels |
taskbarHeight | number | Height of taskbars in pixels (must be ≤ rowHeight) |
connectorLineWidth | number | Width of dependency connector lines |
connectorLineBackground | string | Color of dependency connector lines |
references/calendar-settings.md (opens in a new tab)references/column-interactions.md (opens in a new tab)references/columns.md (opens in a new tab)references/data-binding.md (opens in a new tab)references/events.md (opens in a new tab)references/excel-export.md (opens in a new tab)references/filtering-searching.md (opens in a new tab)references/gantt-methods.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/holidays-working-time.md (opens in a new tab)references/localization-rtl.md (opens in a new tab)references/managing-tasks.md (opens in a new tab)references/pdf-export.md (opens in a new tab)references/resources.md (opens in a new tab)references/rows.md (opens in a new tab)references/scrolling.md (opens in a new tab)references/selection.md (opens in a new tab)references/sorting.md (opens in a new tab)references/splitter.md (opens in a new tab)references/state-persistence.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-react65 skills in this plugin
/syncfusion-react-3d-chartImplement Syncfusion React 3D Chart component from the @syncfusion/ej2-react-charts package. Use this skill when users need 3D column, bar, stacked column, stacked bar, or 100% stacked chart variations. Covers Chart3DComponent, axis configuration (category, numeric, datetime, logarithmic), data binding, multiple panes, data labels, legends, tooltips, selection, print/export, theming, and accessibility./syncfusion-react-3d-circular-chartImplements the Syncfusion React 3D Circular Chart component for pie and donut chart visualization. Use this when users need 3D circular charts, data labels, legends, tooltips, or empty point handling. Guides through installation, configuration, customization, and troubleshooting of 3D Circular Charts in React applications./syncfusion-react-accordionGuide users to implement Syncfusion React Accordion component for collapsible content panels. Use this skill whenever the user needs to create expandable/collapsible sections, accordion layouts, tabbed content panels, multi-step forms, FAQs, or navigation with expandable items. Covers component setup, expand modes, animations, dynamic content loading, styling, events, lifecycle, React hooks integration, and complete API reference.
Other plugins' skills for the same job