Activity 6 - Bar Chart
✓ Published0🌍 Public
This example shows a horizontal bar chart of the top 10 countries by population in the year 2000. It uses React to render SVG primitives and D3's `scaleBand` and `scaleLinear` for positioning. The bars are colored green, and hovering reveals a tooltip formatted with D3's `format`. Data is loaded asynchronously from a remote CSV file via D3's `csv` function, and the chart includes custom axes with formatted tick labels.
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