Skip to main content
100%

activity 6_Task 1

✓ Published0🌍 Public
Aadapasaidivya99@gmail.com
Last edited Oct 21, 2024
Created on Oct 21, 2024
Forked from Hello VizHub

This visualization is a horizontal bar chart that displays the population of up to 30 countries for the year 2020, sorted in descending order. The chart uses React and SVG rendering, with D3.js (v5) providing the scaling and layout via `scaleBand` and `scaleLinear`. Data is fetched from a remote CSV file using D3’s `csv` function, and the bars are styled as light green rectangles. The x-axis is formatted to display values in billions, with tick marks and labels generated by custom React components.

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