Fork of Menu Line Chart - Deaths caused per country from different risk factor
This interactive line chart visualizes annual deaths attributed to various risk factors—such as alcohol use, smoking, or unsafe water—for a selected country over 17 years. Two dropdown menus let users choose the country and the risk factor, updating the single smoothed line rendered with d3.line and curveNatural. The visualization is built with React and D3 v5, using scaleTime and scaleLinear for axes and SVG paths for rendering. The underlying data comes from a CSV file listing deaths per country and risk factor across all age groups and sexes.