activity 6_Task 1
✓ Published0🌍 Public
This bar chart displays the populations of the top 10 countries in the year 2000, sorted in descending order. The visualization uses a React component that loads CSV data via `d3.csv`, with `d3.scaleBand` mapping countries on the y-axis and `d3.scaleLinear` mapping population values on the x-axis. The custom `Marks` component renders green SVG rectangles, and axis labels are formatted using the `d3.format` function. Tooltips show the formatted population value for each bar.
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