Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity 6_Task 1

Public visualization

Viewing a saved revision (read-only)

1b56bbc8db0840b7a5b8f0cbd6917f81

activity 6_Task 1

0 stars3🌍 Public
VVijay Sheru
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This horizontal bar chart ranks the ten most populous countries in the year 2000, using bars colored light green against a blue-axis plot. Data is loaded from a CSV via `csv` and sorted in descending order, with the top ten slices selected for display. The chart uses React components (`AxisBottom`, `AxisLeft`, `Marks`) and D3’s `scaleBand` and `scaleLinear` to position bars, while `format(.2s)` converts population values into abbreviated text such as "1.2B".

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.