🌍 Public
Viewing a saved revision (read-only)
c89e706e0c3745cfb0f2024f039defc0
activity 6
This bubble chart displays the population of 30 countries in 2020, using horizontal bars where length corresponds to population size. The visualization is built with React and D3 version 5, rendering as SVG. It loads data from a CSV file via D3’s `csv` function, scales the x-axis with `scaleLinear` and the y-axis with `scaleBand`, and uses a custom `Marks` component to draw the rectangles, with tooltips formatted using D3’s `format` function.
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.