activity 6_Task 1
✓ Published0🌍 Public
This example shows a horizontal bar chart of population data for 20 countries in 2010, with country names on the y-axis and population values on the x-axis. The visualization uses React components to render SVG elements, with D3’s `scaleBand` and `scaleLinear` for positioning and scaling. Data is loaded asynchronously from a CSV file via `d3.csv`, and each bar includes a native `<title>` element for tooltip display. Axis ticks and labels are generated through custom React components, with numbers formatted using `d3.format`.
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