Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_population

Public visualization

Viewing a saved revision (read-only)

35ead54278334557b2cde0e8ea786e0b

Activity6_population

0 stars0🌍 Public
Kkeerthi.yanala104@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

This example shows the 2020 population of various countries as a horizontal bar chart, with the bars ordered by country name and labeled with abbreviated values in billions. It is built with React and D3 v5, using `scaleBand` for the y-axis, `scaleLinear` for the x-axis, and `format` with the `.2s` specifier to convert tick labels from gigabytes to billions. The SVG rendering includes custom axis components and a tooltip format applied to bar labels.

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.