Skip to main content
100%

Question-1.2 Task-1

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

This horizontal bar chart displays the population of 20 countries in 2010, sorted by country name. The visualization uses React with D3.js scales and axes to render SVG rectangles, with bars sized proportionally to population values. The code imports D3’s `scaleBand`, `scaleLinear`, and `format` APIs, while loading data via `csv` from a GitHub-hosted CSV file. Tooltips show formatted population values using a custom tick format that shortens large numbers to billions.

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