Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Gantt chart

Public visualization

Viewing a saved revision (read-only)

56d06cc18d674d7ba2754aff2cab2a3b

Gantt chart

0 stars0🌍 Public
Ffmcgomes
Last edited Mar 15, 2023
Created on Mar 15, 2023
Forked from D3 Starter

This Gantt chart displays the time spans of three items, A, B, and C, as horizontal bars along a shared timeline, with each bar’s length representing its duration. The chart uses React with D3 v7, rendering to SVG via a single `<svg>` element. It leverages `d3.scaleTime` and `d3.scaleBand` to map dates and categories to positions, and `d3.axisTop` with yearly ticks to label the time axis. The data comes from a local JSON file read at runtime.

AI-generated description

A demonstration of how to start using D3 version 6.