Skip to main content
100%

Activity6_Question1.2

✓ Published0🌍 Public
JJayanth Reddy Sripathi
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Activity6_Task1

This example shows a horizontal bar chart of the top 20 countries by 2010 population, using SVG rectangles positioned by D3 scaleBand and scaleLinear. React components render the axis and marks, with the bottom axis formatting values using D3’s format function to convert abbreviations like “G” to “B”. Data loads asynchronously via d3.csv from a GitHub raw URL, and tooltips display formatted values through the SVG title element. The chart uses Poppins font styling and a green mark fill from the included CSS.

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