Activity6_Task1_2
✓ Published0🌍 Public
This example shows a horizontal bar chart of national populations in 2010, with bars representing population size and a green fill color. The chart loads data from a CSV file via `d3.csv`, uses `d3.scaleBand` for the categorical country axis and `d3.scaleLinear` for the quantitative population axis, and formats tick labels with `d3.format`. It is built with React, where local components `AxisBottom`, `AxisLeft`, and `Marks` define SVG elements, and tooltips reveal exact values via an HTML `<title>` element. The visualization is rendered as an SVG within a React app, using D3 v5 loaded from UNPKG.
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