Activity_6_test
✓ Published0🌍 Public
This example displays a horizontal bar chart ranking the populations of ten countries in 2000, using a dataset loaded from a GitHub CSV file. The visualization renders as an SVG through React, with d3.scaleBand and d3.scaleLinear mapping country names to the y-axis and population values to the x-axis. The code utilizes d3.csv for data loading, d3.format for abbreviating tick labels, and custom React components for axes and rectangular marks. Interactive tooltips appear when hovering over bars, showing the population value in millions.
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