Task8_Wolfe_Jordan_Question_1
✓ Published1🌍 Public
This example displays a horizontal bar chart of country populations in 2000, sourced from a CSV file, with population values scaled to thousands. Built with React and D3 v5, it uses `scaleBand` for the country axis and `scaleLinear` for population, while custom components render SVG axes and marks. The bars are red with hover tooltips showing formatted values, and the chart includes a "POPULATION-2000" axis label. Data loading uses React hooks with D3's `csv` function, and the code demonstrates local ES6 module imports alongside direct D3 imports.
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