Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar chart

Public visualization

Bar chart

0 stars0🌍 Public
GGeolffrey S Mena
Last edited Sep 8, 2019
Created on Sep 8, 2019
Forked from Bar chart

This example shows a horizontal timeline of events for different crews, with colored bars marking periods of work, stops, and idle time. The code loads data from a CSV file and uses D3’s `scaleTime`, `scaleBand`, and `scaleOrdinal` to map dates, categories, and colors, while `axisBottom` renders the time axis. The SVG is sized at 960 by 120 pixels, and rectangles are filled with green via CSS, though the visible chart only displays the empty axes scaffolding.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed