Fork of Fork of Activity 6_Task 1
✓ Published0🌍 Public
This example displays a horizontal bar chart of the top 20 countries by 2010 population, using a CSV file loaded via `d3.csv`. It shows a population bar chart with a formatted x-axis that converts values to billions (e.g., "B") using `d3.format`. The visualization is built with React components (e.g., `AxisBottom`, `AxisLeft`, `Marks`) and renders SVGs using `d3.scaleBand` and `d3.scaleLinear`. The bars are styled with a light green fill (`#90ee90`), and hover tooltips are provided by SVG `<title>` 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