Skip to main content
100%

Task8_Q2

✓ Published0🌍 Public
LLakshmi Keerthi
Last edited Apr 9, 2024
Created on Apr 9, 2024
Forked from Task8_Q1

This visualization shows a horizontal bar chart of the 2010 population figures for 20 countries, ordered by country name. Using React and D3 v5, the chart loads CSV data from a GitHub source, then renders SVG rectangles scaled by population. The code employs D3's scaleBand and scaleLinear for axis mapping, while custom AxisBottom and AxisLeft components handle tick marks and labels, with population values formatted using D3's format function and tooltips via SVG title elements.

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