Activity 6_question1
✓ Published0🌍 Public
This example displays a horizontal bar chart of the top 10 countries by population in 2000, using red bars on a white background. The visualization is rendered as an SVG within a React application, using D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis, with tick labels formatted via `format('.2s')`. Data is loaded asynchronously from a remote CSV file using D3’s `csv` function, and the chart includes axis labels and a title.
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