Task 4
✓ Published0🌍 Public
This example presents a multi-line chart tracking total COVID-19 deaths over time for the first 20 countries in a filtered dataset. It loads data from a remote CSV file and uses D3 v6 to render SVG paths, with an ordinal color scale distinguishing each country and a legend identifying them. The code employs `d3.csv`, `d3.timeParse`, `d3.scaleTime`, `d3.scaleLinear`, `d3.axisBottom`, `d3.axisLeft`, and `d3.line` to build the visualization. The rendering approach uses a standard SVG container with configured margins for axes and labels.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed