Skip to main content
100%

Activity6_Question 1

✓ Published1🌍 Public
MMounishAllam@my.unt.edu
Last edited Oct 19, 2024
Created on Oct 19, 2024
Forked from Activity6_Task 1

This bar chart displays the 2020 populations of 30 countries, sorted alphabetically along the vertical axis with horizontal bars scaled by population. The visualization uses React to render an SVG, with D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. Axis components are custom-built using D3’s tick methods, while data is loaded via `d3.csv` from a GitHub-hosted CSV file. Hovering over a bar reveals a tooltip via an SVG `<title>` element, and the x-axis labels are formatted using `d3.format`.

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