Skip to main content
100%

Activity 8 - Task 1

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

This example shows a horizontal bar chart ranking the 2020 populations of 30 countries, with the largest values extending farthest to the right. Built with React and rendered as SVG, it loads data from a CSV file using the `d3.csv` parser and uses D3 scales (`d3.scaleBand` and `d3.scaleLinear`) to map countries and population counts to positions. Custom axis components draw tick marks and labels, and tooltips formatted with `d3.format` appear on hover over each bar.

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