Skip to main content
100%

Activity 6

✓ Published0🌍 Public
Nnandasaipalankius@gmail.com
Last edited Oct 22, 2024
Created on Oct 20, 2024
Forked from Hello VizHub

A horizontal bar chart displays the 2020 populations of 30 countries, sorted by country name. The visualization uses React with D3 version 5, employing `d3.scaleBand` for the y-axis and `d3.scaleLinear` for the x-axis. Data loads from a CSV file via `d3.csv`, with population values multiplied by 1000, and renders as SVG rectangles with tooltips. Axis components and marks are modularized as separate ES6 modules, with styling applied via CSS classes.

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