Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task1

Public visualization

Viewing a saved revision (read-only)

4007bc92f1164cda8c5a0d9b24830dae

Activity6_Task1

0 stars0🌍 Public
Ppradeepgubbala2001@gmail.com
Last edited Oct 25, 2024
Created on Oct 25, 2024

This visualization shows a horizontal bar chart comparing the populations of 30 countries for 2020, sorted by country name. Data is loaded from a CSV file via `d3.csv`. The chart uses React components with D3 scales, arranging bars with `scaleBand` for the y-axis and `scaleLinear` for the x-axis. The SVG output includes custom axes, blue tick lines, and green bars with tooltips, with populations formatted using `d3.format`.

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.