Skip to main content
100%

Fork of Activity6_Question1_2

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

This horizontal bar chart displays the populations of 20 countries for the year 2010, sorted by country name. The viz uses React with D3.js v5, importing `scaleBand`, `scaleLinear`, and `format` from the D3 library. The data is fetched as a CSV from a GitHub repository via D3’s `csv` function. The chart renders as an SVG, with bars colored orange, blue tick lines, and tooltips showing formatted population values (e.g., "1.23B").

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