Activity 6_Task1 Question1.2
✓ Published0🌍 Public
This example shows a horizontal bar chart of population data for 20 countries in 2010. The chart uses a linear scale for population values on the x-axis and a band scale for country names on the y-axis, with bars colored light green. The visualization loads data from a CSV file via d3.csv and renders using React with SVG elements. Axis components are created with d3.scaleBand and d3.scaleLinear, while d3.format applies SI-prefix formatting to tick labels, replacing "G" with "B" for billions.
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