Skip to main content
100%

Activity6Question1

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

This horizontal bar chart displays the top 10 countries by population in 2020, using a dataset loaded as CSV from GitHub via D3’s `csv` function. Built with React and D3 v5, it renders an SVG with categorical bars (using `scaleBand` for the y-axis) and a linear x-axis (via `scaleLinear`), formatted with D3’s `format` for SI units. Interactive hover tooltips show the population values through SVG `<title>` elements. The axes and tick marks are styled with blue lines and gray text, with bars colored light green, all wrapped in a Poppins font layout.

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