Skip to main content
100%

D3 React Gantt Chart

✓ Published0🌍 Public
Ffmcgomes
Last edited Mar 15, 2023
Created on Mar 15, 2023
Forked from React Starter

This D3 React Gantt chart displays project timelines as horizontal bars on a time axis, with each category (A, B, C) mapped to a row via a band scale. It uses d3.scaleTime and d3.scaleBand to position rectangular bars, d3.axisTop for year ticks, and d3.axisLeft for category labels, all rendered as SVG. The React component manages the chart lifecycle with useEffect and useRef, while d3.select manipulates the SVG directly. Data from a JSON array provides start and end dates for each bar.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes