Skip to main content
100%

Activity 7

✓ Published0🌍 Public
BBhavanaGIrni
Last edited Jul 3, 2023
Created on Jul 3, 2023
Forked from Hello VizHub

This bar chart displays the 2010 populations of ten countries, sorted alphabetically by country name. Each bar’s length is proportional to the population value, with a custom tooltip showing the formatted number. The visualization is rendered as an SVG using React, with D3 v5’s `scaleBand` for the categorical y-axis, `scaleLinear` for the numeric x-axis, and `format` to abbreviate large numbers. Data is loaded asynchronously from a remote CSV file via the `csv` function.

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