Skip to main content
100%

Activity6_Question1.2

✓ Published0🌍 Public
PPreethi Medepalli-91
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart of population figures for the top 20 countries in 2010, with country names on the y-axis and population counts on the x-axis. The chart uses React with D3 v5 scales and axes, loading data from a remote CSV file via `d3.csv`. Bars are rendered as SVG `rect` elements with a tooltip that formats values using `d3.format`, and the visualization includes custom axis components built with `scaleBand` and `scaleLinear`.

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.
MIT Licensed

Similar vizzes