Activity6_Q1.2
✓ Published0🌍 Public
This example shows a horizontal bar chart displaying the populations of 20 countries in 2010, sorted by country name. The visualization uses React to render SVG elements while leveraging D3’s scaleBand and scaleLinear for positioning and scaling. It loads population data from a CSV file via d3.csv and formats tick labels using d3.format. The bars are colored light green, with a blue axis line and gray text 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