Skip to main content
100%

Activity6_Task-1

✓ Published0🌍 Public
Ppenumutchu.manobhiram@gmail.com
Last edited Apr 10, 2024
Created on Apr 7, 2024
Forked from Hello VizHub

This interactive horizontal bar chart displays the 2010 population estimates for a selection of countries, ranked along the y-axis with bars extending along the x-axis. It uses React to render an SVG graphic, built on D3 v5. The chart fetches its data from a CSV file via `d3.csv`, using `d3.scaleBand` and `d3.scaleLinear` to map country names and population values. Bar tooltips and axis labels are formatted with `d3.format`'s `.2s` notation, converting values like 'G' to 'B'.

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