Skip to main content
100%

ACTIVITY8_TASK1

✓ Published0🌍 Public
Aajaykumarakula00@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024

This example displays a horizontal bar chart ranking the 2020 populations of 30 countries, drawn from a CSV file with D3’s `csv` loader. React components render SVG axes (`AxisBottom`, `AxisLeft`) and rectangle marks, with scales mapping population values to bar widths. D3 v5 provides the scale functions and tick formatting, while JSON tooltips on each bar reveal the exact population figure. The chart uses a simple, clean layout with labeled axes to compare relative population sizes across nations.

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