Skip to main content
100%

activity6 question 1.2

✓ Published0🌍 Public
Ggketan456@gmail.com
Last edited Oct 20, 2024
Created on Oct 20, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart ranking the top 20 countries by their 2010 population. Built with React and D3 v5, it uses `scaleBand` for the categorical country axis and `scaleLinear` for the population axis, rendering rectangular marks as SVG elements. The data is loaded via `d3.csv` from a GitHub-hosted CSV file, and the chart includes formatted axes with tick labels using `d3.format`.

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