Skip to main content
100%

Activity6_Task1

✓ Published0🌍 Public
Aalapati98@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from Hello VizHub

This visualization displays a horizontal bar chart of population figures for 30 countries in 2020, with bars scaled logarithmically from zero. The React-based example uses D3 v5 modules like `scaleBand` and `scaleLinear` for axes and positioning, while rendering SVG rectangles through custom `AxisBottom`, `AxisLeft`, and `Marks` components. Data loads from a remote CSV via `d3.csv`, with population values transformed by multiplying the 2020 column by 1000. Tick labels use `d3.format` to abbreviate large numbers (e.g., 'B' for billions), and tooltips provide formatted values on hover.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes