Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_population

Public visualization

Viewing a saved revision (read-only)

4e22d0a4654e4f24b8c2588e68cf1782

Activity6_population

0 stars0🌍 Public
Rrishithagovini99@gmail.com
Last edited Apr 6, 2024
Created on Apr 4, 2024

This bar chart displays the population of ten countries in the year 2000, with horizontal bars representing each nation’s population size. The visualization uses React to render SVG elements, while D3 v5 handles data loading, scaling, and axis generation through `scaleBand`, `scaleLinear`, and custom `AxisBottom` and `AxisLeft` components. Population values are loaded from a CSV file via `d3.csv`, formatted with `d3.format`, and displayed with tooltips showing the precise figures.

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.