Skip to main content
100%

Activity6_Que1_1

✓ Published1🌍 Public
Ggroup118sai@gmail.com
Last edited Oct 18, 2024
Created on Oct 18, 2024
Forked from Activity6_Task1

This visualization displays the top 10 countries by population in the year 2000 as a horizontal bar chart rendered with SVG. React manages the component state while D3 v5 handles data loading via `d3.csv` and scales including `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. Population values are formatted using `d3.format` with a custom tick formatter that converts gigabytes to billions. Bars are generated as SVG `rect` elements with tooltips showing formatted values, and the chart includes labeled axes with gridlines and a custom Poppins font.

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