Skip to main content
100%

Activity6_Que1_1

✓ Published0🌍 Public
Ggroup118sai@gmail.com
Last edited Oct 18, 2024
Created on Oct 18, 2024
Forked from Activity6_Task1

This chart, built with React and D3 v5, displays a horizontal bar chart ranking the 2020 populations of 30 countries. The bars are rendered as SVG rectangles, with a linear scale for the population axis and a band scale for the categorical country axis. D3’s `scaleLinear`, `scaleBand`, and `format` APIs handle scaling and tick label formatting, converting values like 1.5G to 1.5B. The data is loaded from a remote CSV file and sliced to the top 30 rows.

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