Activity6_Question 1.2
✓ Published0🌍 Public
This example shows a horizontal bar chart comparing the populations of 20 countries in 2010. The chart uses D3 scales to map data values to screen positions, with SVG rectangles representing each bar and the D3 `format` function converting large numbers into abbreviated labels. It is built with React components that render the axes and marks, and it loads data from a CSV file hosted on GitHub. The chart includes a blue axis grid and green bars, with tooltips displaying exact values.
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