Skip to main content
100%

Activity 8 - Q1.2

✓ Published0🌍 Public
SSamir Tarda
Last edited Apr 9, 2024
Created on Apr 9, 2024
Forked from Hello VizHub

A horizontal bar chart displays the populations of 20 countries in 2010, sorted alphabetically by country name. The visualization uses React with SVG rendering and D3 v5 scales, including `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. Data is loaded asynchronously via D3's `csv` parser from a GitHub-hosted CSV file. Custom React components render the axes and rectangular marks, with formatted tick labels converting billions using D3's `format` 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