Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task1_Q1.2

Public visualization

Viewing a saved revision (read-only)

01dccbb8a4434bd4bf701c95cdf52434

Activity6_Task1_Q1.2

0 stars0🌍 Public
Vvenkatamanikantavaddi@my.unt.edu
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This interactive bar chart visualizes the population of 20 countries for the year 2010. Each horizontal bar's length is proportional to population, with countries listed on the y-axis and population values on the x-axis, formatted in billions (e.g., "1.2B"). The visualization is built with React and D3 v5, using `scaleBand` for the categorical y-axis and `scaleLinear` for the population x-axis. Data is loaded from a remote CSV file using D3's `csv` function, and the chart is rendered as an SVG with tooltips showing exact values.

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.