Skip to main content
100%

Fork of Activity6_population q2

✓ Published0🌍 Public
Iibrahimpatnamrohit1990@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024

This bar chart displays the top 20 countries by population in 2010, sorted in descending order. It uses D3.js v7, loaded via a CDN in the HTML. The visualization fetches data from a CSV file hosted on GitHub, processes it with `d3.csv`, and sorts it before selecting the top 20 entries. The chart is rendered as an SVG using `d3.axisBottom`, `d3.axisLeft`, and `d3.scaleBand` for the y-axis. Bars are drawn as `rect` elements with a width mapped by `d3.scaleLinear` and are colored `steelblue`.

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