Activity 6 Q1.1
✓ Published1🌍 Public
This horizontal bar chart displays the populations of ten countries for the year 2010. The visualization, built with React and D3 v5, renders as an SVG. It uses `d3.scaleBand` and `d3.scaleLinear` to map categorical and quantitative data, while the `d3.csv` function loads the dataset from a remote gist. The custom `AxisBottom`, `AxisLeft`, and `Marks` components define the blue tick lines, gray labels, and green bars, and a tooltip shows the formatted population value via `<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