Fork of Line Chart with Multiple Lines
✓ Published2🌍 Public
This fork of a line chart with multiple lines visualizes yearly data across countries, using color-coded lines to show trends over time. The visualization displays the data through D3.js’s `scaleLinear`, `scaleOrdinal`, and `schemeDark2` for color mapping, with a custom `colorLegend` component. Lines are generated with the `line` function and `flatGroup` aggregates data by country. The chart includes axes via `axes` from `@curran/responsive-axes` and a semi-transparent inner rectangle background, with opacity applied to lines for readability.
AI-generated descriptionI referred to Corey's code to make few things work. His work - https://vizhub.com/python-monty/cyber-attacks-by-year-v3
MIT Licensed