Scatter/Line Plot with Menus
A scatter/line plot displays deaths and death percentages of miners over time, with two dropdown menus to switch the y-axis variable. The visualization uses D3 v5 with SVG rendering and animated transitions, as circles grow and reposition over two seconds when the menu selection changes. The chart employs D3 scales, axes, a line generator, and a custom dropdown menu component built with HTML select elements. Data is loaded from a CSV file hosted on GitHub, with years parsed as dates and numerical values converted to numbers.