Skip to main content
100%

Activity_6_Task_1

✓ Published1🌍 Public
LLarry Johnson
Last edited Oct 24, 2024
Created on Oct 24, 2024
Forked from Hello VizHub

This visualization displays the population of ten countries in the year 2000 as a horizontal bar chart using SVG rendering within a React application. The chart uses D3.js v5 functions `scaleBand` and `scaleLinear` to map country names and population values to coordinates, with axes rendered by custom components. Population values are formatted using D3's `format` function, abbreviating large numbers with "B" for billions. Data is loaded asynchronously from a remote CSV file using `d3.csv`.

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