Skip to main content
100%

Line ships at the Battle of Trafalgar

✓ Published0🌍 Public
Ttomahawk-jupiter
Last edited Jun 15, 2021
Created on Jun 12, 2021

This visualization displays the ships of the line at the Battle of Trafalgar, showing each vessel’s complement or total casualties as horizontal bars colored by fleet affiliation. A dropdown menu toggles between the two numeric attributes. Built with React and D3 v6, it uses `scaleBand` and `scaleLinear` for positioning, with SVG rectangles rendered for each ship. Data is loaded from a CSV via `d3.csv`, and interactive hover tooltips display ship name, value, and fate.

AI-generated description

Ships of the line at the battle of trafalgar. Original table on wikipedia, I have edited the original data.

bugs: Something wrong with the bars for Neptune and Swiftsure. Both show wrong color and data, but ship names are correct. Also when hovering the bar is in two sections.

MIT Licensed

Similar vizzes