Skip to main content
100%

Activity6-question 1.2

✓ Published0🌍 Public
Ttallapanenisahithi@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024

This horizontal bar chart displays the population of 20 countries in 2010. The visualization sorts countries along the y-axis using a band scale, with bar lengths proportional to population values on a linear x-axis. Built with React and D3 v5, the example loads CSV data and renders an SVG using local ES6 modules for axes and marks. Custom tick formatting converts large numbers to abbreviated “B” notation for billions, and tooltips show formatted values on hover.

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