🌍 Public
Viewing a saved revision (read-only)
0caeb7348be243e387a075e875257e3e
Actitvity6.1
A bar chart displays the populations of ten countries in the year 2000, with countries on the y-axis and population values on the x-axis. The visualization uses React components with D3 v5's `scaleBand` and `scaleLinear` for axes, and renders SVG rectangles as marks. Data is loaded from a CSV file via `useData` and `csv`, with population values converted from thousands. Tooltips show formatted values using D3's `format` function, while blue axis ticks and green bars follow CSS-defined styling.
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.