Skip to main content
100%

Fork of Line Chart with Country Dropdown

✓ Published0🌍 Public
Ccoreyfnolan@gmail.com
Last edited Mar 29, 2024
Created on Mar 29, 2024

This interactive line chart visualizes Olympic medal counts over time for a selected country. A dropdown menu populated with unique countries from the dataset lets users filter the view, displaying a single line for the chosen nation. The visualization uses D3.js (v7) APIs including `scalePoint`, `scaleLinear`, `scaleOrdinal`, `line`, and `flatGroup` to map years and medal totals, with `observeResize` from `@curran/responsive-axes` managing responsive dimensions. The chart renders an SVG with axes, gridlines, and a colored line, updating dynamically on selection changes.

AI-generated description

I referred to Corey's code to make few things work. His work - https://vizhub.com/python-monty/cyber-attacks-by-year-v3

MIT Licensed

Similar vizzes