Question-1.1
✓ Published0🌍 Public
This example displays a horizontal bar chart of the top 10 countries by population for the year 2000. Using D3 v5 and React, the chart employs `scaleBand` and `scaleLinear` for positioning, with bars rendered as SVG `<rect>` elements from CSV data. The x-axis uses `format('.2s')` to abbreviate population values, converting 'G' to 'B' for billions, and each bar includes a tooltip via the `<title>` element. Axis ticks are labeled in blue, and the visualization is styled with the Poppins font.
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