Activity 6_Task1.2
✓ Published0🌍 Public
This example displays a horizontal bar chart of population figures for 20 countries in 2010, with countries on the y-axis and population on the x-axis. It loads CSV data from a GitHub repository using d3.csv and renders the chart as SVG elements within a React component. The visualization uses d3.scaleBand and d3.scaleLinear to map data to coordinates, along with custom axis components and bars colored light green, with tooltips showing population values in 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