Skip to main content
100%

Gantt chart

✓ Published0🌍 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.

MIT Licensed

Similar vizzes