Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task8_Q1)2)

Public visualization

Viewing a saved revision (read-only)

1027478ab378476cb1bf505c5be7168e

Task8_Q1)2)

0 stars0🌍 Public
Mmulyasuji999@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This bar chart displays the population of 20 countries in 2010, ordered along a vertical band scale with horizontal bars extending along a linear population scale. The visualization is rendered as an SVG using React and D3 v5, with data loaded from a CSV file via `d3.csv`. Axes are custom-built using `scaleBand` and `scaleLinear`, while tick labels format population values with the `d3.format` function, converting billions (G) to billions (B). Interactive tooltips appear on each bar via SVG `<title>` elements.

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.