Categorized Timeline Using Dates
This visualization displays a categorized timeline of wars involving the United States during its first 100 years, using data from Wikipedia. Events are grouped into five distinct lanes—colonial, native, internal, European, and Latin American conflicts—each rendered as horizontal bars within its own row. The example uses the d3.timeline layout from the d3.layout.timeline plugin, with D3 v4’s scaleOrdinal for color mapping and d3.csv to load the data. Rectangles are positioned and sized based on the timeline’s computed start and end coordinates, with each category separated vertically.
AI-generated descriptionAn example of d3.layout.timeline that shows wars the United States has been involved in during its first 100 years (from Wikipedia). Events have been categorized and rendered in separate lanes for colonial wars, native wars, internal wars, wars involving European powers, and wars in Latin America.
forked from <a href='http://bl.ocks.org/emeeks/'>emeeks</a>'s block <a href='http://bl.ocks.org/emeeks/3184af35f4937d878ac0'>d3.layout.timeline categorized timelines</a>, updated to version 4 of D3.
forked from <a href='http://bl.ocks.org/tomshanley/'>tomshanley</a>'s block: <a href='http://bl.ocks.org/tomshanley/1f063667610f2092b78c990d8c35fb4d'>d3.layout.timeline categorized timelines</a>