Skip to main content
100%

Fork of Fork of Activity6_q1.1

✓ Published0🌍 Public
Aabjalshaik02@gmail.com
Last edited Oct 21, 2024
Created on Oct 21, 2024

This visualization displays the population of ten countries in the year 2000 as a horizontal bar chart using SVG rendering in React. The code employs d3.scaleBand and d3.scaleLinear from the D3 v5 library to map countries to the y-axis and population values to the x-axis, with formatted tick labels converting numbers to billions. Data is loaded from a CSV file via d3.csv, and the bars include tooltips showing the population value. The chart also features custom axis components and a Poppins font from Google Fonts.

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