Top countries of Covid-19 Bar Chart
✓ Published1🌍 Public
This example displays a bar chart of the top ten countries by total COVID-19 cases, ranked by population. It uses D3's `scaleBand`, `scaleLinear`, `axisLeft`, `axisBottom`, and `line` APIs to render the axes and a line mark. The visualization loads data from a remote CSV via `csv()`, sorts it, and slices the top ten entries. Local ES6 modules like `@curran/axis-labels` handle axis labels, while `select` and `join` manage SVG elements.
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