Skip to main content
100%

Activity6_Task1

✓ Published0🌍 Public
CChandra Prakash Reddy Kalwakolu
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This visualization shows a horizontal bar chart of population data for 30 countries in 2020, using a categorical y-axis for country names and a linear x-axis for population values. The React app loads CSV data from GitHub via the `csv` function in d3.v5, scales it with `scaleBand` and `scaleLinear`, and renders SVG bars with green fills and blue tick lines. Mouse hover reveals population values through SVG `<title>` tooltips, with axis labels formatted using `format('.2s')` to abbreviate large numbers as billions.

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