JavaScript gantt chart libraries

Updated Nov 2026

JavaScript gantt chart libraries draw project schedules as horizontal task bars on a timeline. Each bar spans a task's start and end dates, while links between bars show the dependencies between tasks. These libraries build the project plans, release schedules, and resource timelines in project management tools.

Popularity

Mermaid has the most monthly downloads in this comparison, at 98.9M, a count that covers all of its diagram types.

LibraryMonthly downloadsStarsLast releaseLicense
Mermaid
98.9M
91.2KNov 2026MIT
Highcharts Gantt
13.5M
241Sep 2026https://www.highcharts.com/license
@amcharts/amcharts5
1.9M
451Nov 2026SEE LICENSE IN LICENSE
Frappe Gantt
1.7M
6.2KFeb 2026MIT
@svar-ui/react-gantt
554.7K
219Nov 2026MIT
gantt-task-react
256.8K
1.1KJul 2022MIT
@syncfusion/ej2-gantt
231.2K
450Nov 2026SEE LICENSE IN license
DHTMLX Gantt
211.4K
1.9KSep 2026MIT
Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

Libraries and code examples

Generates gantt charts and other diagrams from a Markdown-like text syntax.

Downloads / mo
98.9M
Stars
91.2K
Last release
12.3.0
License
MIT

Strengths

  • Exports SVG, PNG, or Markdown. Render a schedule as SVG, PNG, or a Markdown link for docs.

Limitations

  • Excluded dates stretch tasks. Excluding a date extends the task to the right instead of leaving a gap.

Quickstart

From usage.html
$ npm install mermaid
<script type="module">
  import mermaid from './mermaid.esm.mjs';
  mermaid.initialize({ startOnLoad: false });

  // Example of using the render function
  const drawDiagram = async function () {
    element = document.querySelector('#graphDiv');
    const graphDefinition = 'graph TB\na-->b';
    const { svg } = await mermaid.render('graphDiv', graphDefinition);
    element.innerHTML = svg;
  };

  await drawDiagram();
</script>

Mermaid examples

From open-source projects on GitHub

Highcharts Gantt

Draws project tasks, their time intervals, and their dependencies as a Gantt chart.

Downloads / mo
13.5M
Stars
241
Last release
13.1.1
License
https://www.highcharts.com/license

Strengths

  • Loads alone or as a module. Load Highcharts Gantt standalone or as a module next to Highcharts.
  • Collapses subtask groups. Point each subtask's parent property at a parent task to group it.

Quickstart

From demo.js
$ npm install highcharts
<script src="https://code.highcharts.com/gantt/highcharts-gantt.js"></script>
// THE CHART
Highcharts.ganttChart('container', {
    title: {
        text: 'Gantt Chart with Progress Indicators',
        align: 'left'
    },

    xAxis: {
        min: '2014-11-17',
        max: '2014-11-30'
    },

    accessibility: {
        point: {
            descriptionFormat: '{yCategory}. ' +
                '{#if completed}Task {(multiply completed.amount 100):.1f}% ' +
                'completed. {/if}' +
                'Start {x:%Y-%m-%d}, end {x2:%Y-%m-%d}.'
        }
    },

    lang: {
        accessibility: {
            axis: {
                xAxisDescriptionPlural: 'The chart has a two-part X axis ' +
                    'showing time in both week numbers and days.'
            }
        }
    },

    series: [{
        name: 'Project 1',
        data: [{
            name: 'Start prototype',
            start: '2014-11-18',
            end: '2014-11-25',
            completed: {
                amount: 0.25
            }
        }, {
            name: 'Test prototype',
            start: '2014-11-27',
            end: '2014-11-29'
        }, {
            name: 'Develop',
            start: '2014-11-20',
            end: '2014-11-25',
            completed: {
                amount: 0.12,
                fill: '#fa0'
            }
        }, {
            name: 'Run acceptance tests',
            start: '2014-11-23',
            end: '2014-11-26'
        }]
    }]
});

@amcharts/amcharts5

Draws Gantt charts alongside XY, pie, map, stock, and other charts, on canvas or as SVG.

Downloads / mo
1.9M
Stars
451
Last release
5.22.0
License
SEE LICENSE IN LICENSE

Strengths

  • Shows dependencies and progress. Bars show each task's timeline, dependencies, and progress.

Limitations

  • Needs an extra plugin. Include the external Color Picker plugin along with the chart modules.

Quickstart

From Gantt chart docs
$ npm install @amcharts/amcharts5
import * as am5 from "@amcharts/amcharts5";
import * as am5gantt from "@amcharts/amcharts5/gantt";
const root = am5.Root.new("chartdiv");
const gantt = root.container.children.push(am5gantt.Gantt.new(root, {}));

Provides configurable web Gantt charts for tasks, schedules, and dependencies.

Downloads / mo
1.7M
Stars
6.2K
Last release
1.2.2
License
MIT

Strengths

  • Customizes timeline views. Configure built-in views or define time scales for the application.
  • Excludes holidays from progress calculations. Ignore weekends and holidays when calculating task progress.

Limitations

  • Date drags snap by default. Change snap_at when users need finer date adjustments.

Quickstart

From index.html
$ npm install frappe-gantt
<script src="https://cdn.jsdelivr.net/npm/frappe-gantt/dist/frappe-gantt.umd.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/frappe-gantt/dist/frappe-gantt.css">

let tasks = [
  {
    id: '1',
    name: 'Redesign website',
    start: '2016-12-28',
    end: '2016-12-31',
    progress: 20
  },
  ...
]
let gantt = new Gantt("#gantt", tasks);

Frappe Gantt examples

From open-source projects on GitHub

@svar-ui/react-gantt

Provides a React Gantt component with editable tasks, dependencies, and custom time scales.

Downloads / mo
554.7K
Stars
219
Last release
2.8.3
License
MIT

Strengths

  • Edits tasks directly. Change tasks through the timeline or task edit form.
  • Shows nested subtasks. Display a task hierarchy alongside the timeline.

Limitations

  • Automation needs the Pro edition. Use Pro for automatic scheduling and critical-path calculations.
  • File exports need Pro. Choose Pro for PDF, PNG, and spreadsheet exports.

Quickstart

From readme.md
$ npm install @svar-ui/react-gantt
import { Gantt } from '@svar-ui/react-gantt';
import '@svar-ui/react-gantt/all.css';

export default function MyComponent() {
  const tasks = [
    {
      id: 20,
      text: 'New Task',
      start: new Date(2024, 5, 11),
      end: new Date(2024, 6, 12),
      duration: 1,
      progress: 2,
      type: 'task',
      lazy: false,
    },
    {
      id: 47,
      text: '[1] Master project',
      start: new Date(2024, 5, 12),
      end: new Date(2024, 7, 12),
      duration: 8,
      progress: 0,
      parent: 0,
      type: 'summary',
    },
  ];

  return <Gantt tasks={tasks} />;
}

gantt-task-react

Renders an interactive Gantt chart as a React component written in TypeScript.

Downloads / mo
256.8K
Stars
1.1K
Last release
0.3.9
License
MIT

Strengths

  • Reports edits through callbacks. Handle date, progress, and delete changes in callback props such as onDateChange.

Quickstart

From README.md
$ npm install gantt-task-react
import { Gantt, Task, EventOption, StylingOption, ViewMode, DisplayOption } from 'gantt-task-react';
import "gantt-task-react/dist/index.css";
<Gantt tasks={tasks} />

@syncfusion/ej2-gantt

Provides Syncfusion's JavaScript Gantt chart control with draggable and resizable taskbars.

Downloads / mo
231.2K
Stars
450
Last release
35.2.12
License
SEE LICENSE IN license

Strengths

  • Edits tasks on the timeline. Set allowTaskbarEditing to drag dates, resize durations, and move progress grips.

Quickstart

From Getting started docs
$ npm install @syncfusion/ej2-gantt
var ganttChart = new ej.gantt.Gantt({
        dataSource: [
            {
                TaskID: 1,
                TaskName: 'Project Initiation',
                StartDate: new Date('04/02/2019'),
                EndDate: new Date('04/21/2019'),
                subtasks: [
                    { TaskID: 2, TaskName: 'Identify Site location', StartDate: new Date('04/02/2019'), Duration: 4, Progress: 50 },
                    { TaskID: 3, TaskName: 'Perform Soil test', StartDate: new Date('04/02/2019'), Duration: 4, Progress: 50  },
                    { TaskID: 4, TaskName: 'Soil test approval', StartDate: new Date('04/02/2019'), Duration: 4, Progress: 50 },
                ]
            },
            {
                TaskID: 5,
                TaskName: 'Project Estimation',
                StartDate: new Date('04/02/2019'),
                EndDate: new Date('04/21/2019'),
                subtasks: [
                    { TaskID: 6, TaskName: 'Develop floor plan for estimation', StartDate: new Date('04/04/2019'), Duration: 3, Progress: 50 },
                    { TaskID: 7, TaskName: 'List materials', StartDate: new Date('04/04/2019'), Duration: 3, Progress: 50 },
                    { TaskID: 8, TaskName: 'Estimation approval', StartDate: new Date('04/04/2019'), Duration: 3, Progress: 50 }
                ]
            },
        ],
        height: '450px',
        taskFields: {
            id: 'TaskID',
            name: 'TaskName',
            startDate: 'StartDate',
            duration: 'Duration',
            progress: 'Progress',
            dependency: 'Predecessor',
            child: 'subtasks',
      }
});
ganttChart.appendTo('#Gantt');

Provides a framework-independent Gantt chart with manual scheduling and task editing.

Downloads / mo
211.4K
Stars
1.9K
Last release
10.0.3
License
MIT

Strengths

  • Renders independent chart instances. Use the Gantt factory for several charts on one page.
  • Edits dates through draggable bars. Move tasks to reschedule and resize bars to change duration.

Limitations

  • Advanced scheduling requires Pro. Choose Pro for automatic scheduling, critical paths, and resource planning.
  • Export uses an online service. Uses the DHTMLX online service for PDF and PNG exports.

Quickstart

From README.md
$ npm install dhtmlx-gantt
<!DOCTYPE html><html><head>    <script src="codebase/dhtmlxgantt.js"></script>    <link href="codebase/dhtmlxgantt.css" rel="stylesheet"></head><body>    <div id="gantt_here" style='width:1000px; height:400px;'></div>    <script type="text/javascript">         gantt.init("gantt_here");                             </script></body></html>

DHTMLX Gantt examples

From open-source projects on GitHub

FAQ

Frappe Gantt fits a plain JavaScript app that needs draggable tasks and custom time scales. SVAR React Gantt and gantt-task-react fit React apps, and Mermaid fits a schedule written as text in documentation.

Mermaid reads a text block that starts with gantt and lists each task with its dates or duration. It renders the chart as SVG, PNG, or a Markdown link for docs.

SVAR React Gantt edits tasks through the timeline or a task form. gantt-task-react reports date and progress changes through callback props.

Frappe Gantt is a JavaScript Gantt chart for tasks, schedules, and dependencies. Its Ignore Periods feature excludes weekends and holidays from task-progress calculations.

Frappe Gantt, Mermaid, SVAR React Gantt, gantt-task-react, and the DHTMLX Gantt Community edition are MIT licensed. Highcharts Gantt, amCharts, and Syncfusion use their own license terms.

For coding agents

Found your gantt chart library? Help your agent use it.

Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.

Run in your terminal

claude plugin install exa@claude-plugins-official