Skip to main content
100%

Activity6_Question1.1

✓ Published0🌍 Public
PPreethi Medepalli-91
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart comparing population figures for the top ten countries from a remote CSV file. The visualization uses D3’s scaleBand for the categorical y-axis and scaleLinear for the continuous x-axis, with bars rendered as SVG rectangles. Country names appear on the left axis, while population values are formatted using D3’s format function to abbreviate large numbers. The chart is built within a React component, pulling data asynchronously via d3.csv, and includes interactive tooltips showing the precise formatted population value for each bar.

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