srinivas 1.2
✓ Published0🌍 Public
This example shows a horizontal bar chart comparing the 2010 population of 20 countries, with each bar labeled by country name on the left and population values formatted in billions along the bottom axis. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis, `scaleLinear` for the numeric x-axis, and `csv` to load data from a GitHub-hosted CSV file. The bars are rendered as SVG rectangles, with tooltips showing exact values and axis labels styled via CSS classes.
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