Fork of area chart
✓ Published1🌍 Public
This example renders an area chart of COVID-19 total cases per country using D3 v7. It loads CSV data from a GitHub gist, converts the total cases to numeric values, and maps countries to a band scale along the x-axis. The area is drawn as a single SVG path with a steelblue fill, while axes are generated using `d3.axisBottom` and `d3.axisLeft`, with country labels rotated and shown every fifth tick. The chart includes axis titles for "Country" and "Total Cases."
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