Skip to main content
100%

Activity6_Question 1.2

✓ Published0🌍 Public
MMounishAllam@my.unt.edu
Last edited Oct 19, 2024
Created on Oct 19, 2024

This example displays a horizontal bar chart of the top 20 countries by population in 2010, with bars colored light green and axes rendered as SVG elements. It loads population data from a GitHub-hosted CSV file using `d3.csv`, and builds the visualization with `scaleBand` and `scaleLinear` for scales. The React-based code demonstrates modular components for the bottom and left axes, as well as marks, while using `d3.format` to abbreviate large population values (e.g., converting gigabytes to billions) in the tooltip and tick labels.

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