Activity6_Q1.1
✓ Published0🌍 Public
This example uses a bar chart to show the population of ten countries in the year 2000, with each bar’s length mapped to population values that are formatted in billions. Built with React and D3 v5, it loads CSV data from a GitHub URL, then uses `scaleBand` for the categorical country axis and `scaleLinear` for the numeric population axis. The chart renders as SVG, with axis components and marks defined in separate local ES6 modules, and includes a tooltip on each bar via the `<title>` element.
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