Skip to main content
100%

activity 6_Task 1

✓ Published0🌍 Public
Ssumanthnaidu213@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from activity 6_Task 1

This visualization shows the population of 30 countries in 2020 as horizontal bars, sorted from largest to smallest. The chart uses React with D3 v5's `scaleBand` and `scaleLinear` to position bars, while `AxisBottom` and `AxisLeft` render tick marks and labels. The data is loaded via `d3.csv` from a GitHub repository, with population values converted from strings to numbers. Hovering over a bar reveals its value through an SVG `<title>` element.

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