Skip to main content
100%

Activity 6 question 2

✓ Published0🌍 Public
Ttallapanenisahithi@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Activity 6_task 1

This example visualizes 2020 population data for 30 countries as a horizontal bar chart using React and D3 v5. It demonstrates loading CSV data from GitHub, mapping values with scaleBand and scaleLinear, and rendering SVG marks with interactive tooltips provided by SVG `<title>` elements. The chart includes styled axes with tick formatting that converts numbers to billions, using components like AxisBottom, AxisLeft, and Marks imported as local ES6 modules.

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