Skip to main content
100%

Activity6Question1

✓ Published1🌍 Public
Gganeshseeram5decem@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Activity6Task1

This bar chart displays the population of ten countries in the year 2000, using a horizontal layout with countries on the y-axis and population on the x-axis. Built with React and D3 v5, it loads CSV data from a GitHub repository and renders SVG rectangles. The code imports specific D3 functions like `scaleBand`, `scaleLinear`, `max`, and `format` (with a custom tick formatter that replaces 'G' with 'B' for billions). Axes and marks are implemented as separate React components, and tooltips show population values via SVG `<title>` elements.

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