Skip to main content
100%

Nagalakshmi_que 1.2

✓ Published0🌍 Public
NNagalakshmi Thota
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This visualization displays a horizontal bar chart of population figures for 20 countries in 2010, with each bar’s length proportional to the population value. The chart loads CSV data from a GitHub repository using d3.csv and renders with React and SVG. It uses d3.scaleBand for the categorical country axis, d3.scaleLinear for the numeric population axis, and d3.format to abbreviate tick labels (for example, converting billions to “B”). Axes and marks are built through reusable local ES6 modules (AxisBottom, AxisLeft, Marks), with light green bars and styled tick 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.
MIT Licensed

Similar vizzes