🌍 Public
Viewing a saved revision (read-only)
04100fbe23324ab2af85715e2759c700
Activity 6_Question-2
This bar chart displays the populations of twenty countries in 2010, using a horizontal layout with country names on the y-axis and population values on the x-axis. Built with React and D3 v5, the visualization uses `scaleBand` for the categorical axis and `scaleLinear` for the numeric scale. Rectangles render the bars, with `format` for tick labels that abbreviate large numbers. Data loads from a CSV file via `csv`, and tooltips appear through 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.