Nagalakshmi_que 1.2
✓ Published0🌍 Public
This visualization displays a horizontal bar chart of population figures for 20 countries in 2010, with each bar’s length proportional to the population value. The chart loads CSV data from a GitHub repository using d3.csv and renders with React and SVG. It uses d3.scaleBand for the categorical country axis, d3.scaleLinear for the numeric population axis, and d3.format to abbreviate tick labels (for example, converting billions to “B”). Axes and marks are built through reusable local ES6 modules (AxisBottom, AxisLeft, Marks), with light green bars and styled tick labels.
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