Skip to main content
100%

Activity-6_Question-1.2

✓ Published0🌍 Public
Rreachtoshasidhar07@gmail.com
Last edited Oct 25, 2024
Created on Oct 25, 2024
Forked from Hello VizHub

A horizontal bar chart displays the top 20 countries by population in 2010, with country names on the y-axis and population values on the x-axis. Built with React and D3 v5, the visualization uses `scaleBand` and `scaleLinear` to position bars, while `AxisBottom` and `AxisLeft` render the axes. Population data is loaded from a CSV file via `d3.csv`, with tooltips showing formatted values 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