Skip to main content
100%

Activity 7 Task 1

✓ Published0🌍 Public
AArun Pratap
Last edited Jul 10, 2023
Created on Jul 10, 2023
Forked from Hello VizHub

This bar chart displays the population of twenty countries for the year 2020, with countries listed on the vertical axis and population values on the horizontal axis. Built with React and D3 v5, the visualization uses `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis, rendering orange rectangles as marks via SVG. Data is loaded from a remote CSV file using D3’s `csv` function, and axis ticks are customized with a format that converts values to billions. The chart includes blue tick lines and a labeled x-axis for population.

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