Skip to main content
100%

Activity6_task1.1

✓ Published1🌍 Public
DDeekshitha Annreddy
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from activity6_task3.1

A horizontal bar chart displays the top ten countries by population in the year 2000, using a dataset loaded via the `d3.csv` method from a GitHub-hosted CSV file. The visualization renders as an SVG in a React app, with bars drawn as `rect` elements positioned by `d3.scaleBand` for the categorical country axis and `d3.scaleLinear` for the population value axis. Custom React components generate the axes and marks, while `d3.format` styles tick labels in billions. A native SVG `title` element provides a tooltip showing each bar’s exact value.

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