Skip to main content
100%

Activity-8_Question-1.1

✓ Published0🌍 Public
Hharipadmavathim2023@gmail.com
Last edited Apr 5, 2025
Created on Apr 10, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart showing population figures for ten countries in the year 2000. The visualization uses React with D3 v5’s `scaleBand` and `scaleLinear` to map country names and population values to the SVG canvas. Bars are rendered as `rect` elements with tooltips, while axes are built from D3’s `format` utility to abbreviate large numbers (e.g., converting gigabytes to billions). Data loads asynchronously from a CSV file via D3’s `csv` function, and the chart includes custom axis styling with blue tick lines and green marks.

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