π Public
Fork of Project dataviz2
This interactive bar chart displays total COVID-19 deaths by country within a selected continent, using a dropdown menu to switch between Asia, Europe, Africa, North America, South America, and Oceania. It loads CSV data via `d3.csv` from a GitHub repository, filters rows by continent, and renders an SVG visualization with `d3.scaleBand` and `d3.scaleLinear`. The code uses D3 v7, `d3.axisBottom` and `d3.axisLeft` for axes, and rotates x-axis labels for readability. Each selection rebuilds the chart by clearing and redrawing the SVG.
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
Comments
Sign in to join the discussion.