Skip to main content
100%

Activity-6-Question-1

✓ Published0🌍 Public
Nnaveen.dodda4321@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This bar chart displays population estimates for ten countries in the year 2000, with countries listed vertically and population values shown horizontally. The visualization is built using React and D3 v5, employing `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. Data is loaded asynchronously from a remote CSV file using D3’s `csv` function, and the bars are rendered as SVG rectangles with tooltips. The code demonstrates modular ES6 imports for axis and mark components, with custom tick formatting that converts large values to billions.

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