Line ships at the Battle of Trafalgar
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 descriptionShips 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.