🌍 Public
Viewing a saved revision (read-only)
f0bf016a2e6a40f79e262495c12f0d54
Gantt Chart tryout
This example displays a Gantt chart with two distinct datasets. It visualizes project timelines and their phases as colored horizontal bars across a time scale, with milestones marked as points. The code uses D3 v5’s `d3.scaleTime` to map dates to positions, and `d3.timeParse` to convert date strings. The SVG rendering is positioned within an HTML container, with a tooltip (`#tag`) that appears on hover, styled by the included CSS. The chart’s source data is defined in JavaScript arrays for projects and tasks.
AI-generated description