Skip to main content
100%

Fork of Task_8_Question2

✓ Published0🌍 Public
Mmythripopuri2001@gmail.com
Last edited Apr 8, 2024
Created on Apr 8, 2024
Forked from Task_8_Question2

This example shows a horizontal bar chart comparing the 2010 population of 20 countries, with each bar labeled by country name and a numeric axis formatted in billions. Built with React and D3 v5, it uses d3.scaleBand for the categorical y-axis, d3.scaleLinear for the quantitative x-axis, and d3.csv to load data from a remote GitHub dataset. SVG rectangles render the bars, while custom AxisBottom and AxisLeft components generate the axes and tick labels, and a native SVG `<title>` element provides tooltips on hover.

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