Skip to main content
100%

Fork of Question 1.2

✓ Published0🌍 Public
Sshivakumarganji@my.unt.edu
Last edited Apr 5, 2024
Created on Apr 5, 2024
Forked from Question 1.2

This example displays a horizontal bar chart of population data for 20 countries in 2010. The visualization uses React with hooks (useState, useEffect) to load and parse CSV data via the d3.csv method, then renders SVG rectangles scaled with d3.scaleLinear and d3.scaleBand. Custom React components (AxisBottom, AxisLeft, Marks) generate the axes and bars, with D3’s format helper providing abbreviated tick labels like “1.5B” and native SVG <title> elements for tooltips.

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