🌍 Public
Viewing a saved revision (read-only)
65478394c3594b14954198be642134c7
Activity6-Question1.1
This horizontal bar chart displays the population of ten countries for the year 2000, ordered along the y-axis with bar lengths encoding values on a linear scale. The visualization is built with React, using D3 v5’s `scaleBand` and `scaleLinear` for layout, and renders SVG rectangles via the `Marks` component. Axes are generated with custom `AxisBottom` and `AxisLeft` components, formatting tick labels with `format('.2s')` to abbreviate large numbers. Data is loaded asynchronously from a CSV file using D3’s `csv` parser.
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.