act 6_q1 2
✓ Published0🌍 Public
This example displays a horizontal bar chart comparing the 2010 populations of twenty countries, ordered by country name. Population values are formatted using `d3.format` with a custom tick formatter that converts units from Giga to Billion. The chart uses D3 v5 scales (`scaleBand`, `scaleLinear`) and is rendered with React and SVG, loading data from a CSV file. The visualization includes blue axis lines and green bars, with a title labeling the x-axis as "POPULATION-2010".
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