Activity6_Task1
✓ Published0🌍 Public
This bar chart displays the population of three countries: the USA, China, and India. The visualization uses D3.js to create an SVG chart with interactive bars that change color when hovered over. The code imports D3 via UNPKG and uses `d3.scaleBand` and `d3.scaleLinear` for the axes, along with `d3.axisBottom` and `d3.axisLeft` for chart labels. The sample data is hardcoded within the JavaScript module.
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