Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_6_Q1.2

Public visualization

Activity_6_Q1.2

0 stars0🌍 Public
Pparvathi829790@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Activity_6_Q1.1

This example renders a horizontal bar chart of the top 20 countries by 2010 population, with each bar’s length proportional to population and a tooltip showing the formatted value. Built with React and D3 v5, it uses `d3.scaleBand` for the y-axis categories, `d3.scaleLinear` for the x-axis, and SVG `rect` elements for bars. Data is loaded via `d3.csv` from a remote URL, with axes generated by custom `AxisBottom` and `AxisLeft` components.

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