Skip to main content
100%

Fork of Task 8 Q1-2

✓ Published1🌍 Public
Vvchittimadha@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from Task 8 Q1-2

This example displays a horizontal bar chart of 2010 population data for 20 countries, sourced from a GitHub CSV file. The chart encodes population values on a linear x-axis scale and country names on a categorical y-axis. Built with React and D3 v5, it uses `scaleBand` and `scaleLinear` for scales, and renders SVG `rect` elements for bars. The code demonstrates loading D3 via UNPKG and importing from local ES6 modules, with tooltips formatted 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