Skip to main content
100%

Activity-6_Ques-1.2

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

This horizontal bar chart displays the population of 20 countries in 2010, sorted alphabetically by country name. The visualization uses React to render an SVG with D3 scales, including `scaleBand` for the y-axis and `scaleLinear` for the x-axis. The code imports D3 utilities like `csv`, `format`, and `max` to load and process data from a GitHub gist. Interactive tooltips appear on hover via SVG `<title>` elements, and axes are built with custom components using tick marks and 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