Skip to main content
100%

Activity 6_Task 1

✓ Published1🌍 Public
Kkeerthana11.mcs@gmail.com
Last edited Oct 24, 2024
Created on Oct 24, 2024
Forked from Hello VizHub

This bar chart ranks 30 countries by their 2020 population, using a horizontal layout with the country names on the y-axis and population values on the x-axis. The SVG is rendered with React, using D3’s `scaleBand` and `scaleLinear` for axes, and `format` for tick labels that abbreviate large numbers (e.g., “1.2B”). Data is loaded from a remote CSV via `d3.csv`, and each bar’s tooltip displays the exact abbreviated population value. The axes and marks are built with custom ES6 modules for bottom ticks and left labels, with the chart styled by 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