Skip to main content
100%

Activity - 6_Question - 1.1

✓ Published1🌍 Public
Pphanisrivinnakota@gmail.com
Last edited Apr 6, 2024
Created on Apr 5, 2024
Forked from Activity - 6

This horizontal bar chart displays the population of ten countries in the year 2000, ranked by country name on the y-axis and population on the x-axis. Built with React and D3 v5, it uses `scaleBand` for the categorical y-dimension, `scaleLinear` for the numeric x-dimension, and formats tick labels with `format('.2s')` to show values in billions. The data is loaded from a remote CSV file using D3's `csv` function, and the SVG rendering includes tooltips on each bar via the `title` element.

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