Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

task1

Public visualization

Viewing a saved revision (read-only)

80528a4d9911487681da9492c3626b9a

task1

0 stars2🌍 Public
IIkram Mohammed
Last edited Oct 20, 2024
Created on Oct 20, 2024

This bar chart shows the population of 30 countries in 2020. Built with React and D3 v5, it uses `d3.scaleBand` and `d3.scaleLinear` to map country names and populations to SVG rectangles. Data is loaded from a CSV file via `d3.csv` and formatted using `d3.format`. Axes are custom-rendered, with hover tooltips displaying the formatted population values.

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.