Skip to main content
100%

Activity-6_Question-1.1

✓ Published1🌍 Public
HHarshathBudida@my.unt.edu
Last edited Apr 3, 2024
Created on Apr 3, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart comparing the population of ten countries in the year 2000, with bars rendered as SVG rectangles. The chart uses D3 v5 scales (`scaleBand` and `scaleLinear`) to map country names and population values, while React components (`Marks`, `AxisBottom`, `AxisLeft`) structure the visualization. Population data is loaded as CSV via `d3.csv` from a remote GitHub source. The x-axis labels use `d3.format` to abbreviate values, and hover tooltips show the formatted population via native SVG `<title>` elements.

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