Skip to content
ChartslibraryUI
Get Pro

React gantt chart

A project plan on a timeline, with progress, milestones and a today line.

Get Pro to install · $79 once<GanttChart />

A Gantt chart lays a plan on a timeline: one bar per task from its start to its end date. The filled part of each bar is the progress, a diamond marks a milestone, and a red line marks today, so it's clear at a glance what is late.

Tasks keep the order you pass, which is usually the order of the plan. Give each task a group, such as a team or workstream, and the bars are coloured by group with a legend. Dates can be ISO strings, Date objects or timestamps, and the axis picks days, weeks or months to fit the span.

This is a chart for reporting a plan in a dashboard, not a project tool: it doesn't drag, link dependencies or schedule. For hundreds of tasks, a table is better.

When to use

  • Project plans and launch roadmaps
  • Month-end close or audit timelines
  • Team workstreams side by side

When not to use

  • You track amounts over time, not tasks – use Line chart
  • Hundreds of tasks: use a project tool – use Table chart

Good practice

  • Keep it to the tasks a reader needs, around 20 at most.
  • Use a milestone (same start and end) for dates, not tasks.
  • Group by team or workstream to colour the bars.

Installation

Gantt chart is a Pro chart.

Installation is part of Pro

Get Pro to install it with your access key and the shadcn CLI, and use it in unlimited projects.

Unlock with Pro

Usage

Usage examples are part of Pro

Every example on this page comes with its code in Pro. The props and data shape below are public.

Unlock with Pro

Data

One row per task with a name, a start date, an end date, and optional group and progress keys.

[{ task: "Close books", start: "2026-12-01", end: "2026-12-05", team: "Finance", done: 0.4 }, ...]

Missing values are null. Invalid values make the chart say what’s wrong instead of drawing a misleading picture. How charts handle bad data

Props

Every chart also accepts the shared frame props: title, subtitle, source, height, mode, toolbar. Common API

export interface GanttChartProps extends FrameProps {
  /** One row per task, in display order. See the Data section for the shape. */
  data: Row[];
  /** Key of the task name. */
  label: string;
  /** Key of the start date (ISO string, Date or timestamp). */
  start: string;
  /** Key of the end date. A task whose end equals its start is drawn as a milestone. */
  end: string;
  /** Optional key of a group (team, workstream); up to 6 groups get distinct colours. */
  group?: string;
  /** Optional key of progress from 0 to 1, drawn as the filled part of the bar. */
  progress?: string;
  /** Draw a "Today" line at this date. Pass a date, or true for the current date. */
  today?: string | number | Date | true;
}

Table chart

A sortable table with inline bars, coloured deltas and sparklines.

Pro

Pacing chart

Cumulative month-to-date actual against plan with a run-rate projection.

Sign in to ChartslibraryUI

New here? The same step creates your account.

Continue with Google
or

No password needed. Bought Pro? Use the email you paid with and your license is there. By signing in you agree to the Terms and Privacy policy.