Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Question1.2

Public visualization

Activity6_Question1.2

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

This example shows a horizontal bar chart comparing the population of 20 countries, using data from a CSV file. The chart displays population values on the x-axis and country names on the y-axis, with a label indicating the data represents 2010 populations. The visualization is built with React and D3 v5, using `scaleBand` for the categorical y-axis, `scaleLinear` for the quantitative x-axis, and SVG rect elements to render the bars. Tooltips are implemented using native SVG title elements, showing formatted population values in billions.

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.

Comments

Sign in to join the discussion.

MIT Licensed