Fork of Task_8_Question2
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed