Skip to main content
100%

Activity6_Task1

✓ Published3🌍 Public
Rrahman.mehmood2002@gmail.com
Last edited Oct 18, 2024
Created on Oct 18, 2024
Forked from Hello VizHub

This bar chart displays the population of 20 countries in 2010, sorted by country name on the vertical axis with population values extending horizontally. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with SVG rendering. The chart loads CSV data from a GitHub repository using D3’s `csv` function, and includes formatted tick labels that abbreviate large numbers (e.g., converting "G" to "B" for billions) along with tooltips on each bar. The code demonstrates modular components for axes and marks, with styling applied through CSS classes.

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