Activity6_Task1
✓ Published0🌍 Public
This bar chart displays the 2020 population estimates for 30 countries, arranged vertically with bars extending horizontally from a shared origin. The visualization uses a React component with D3 scale functions (`scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis), rendering SVG rectangles via the custom `Marks` component. Data loads asynchronously from a CSV file using D3’s `csv` parser, with axis ticks formatted using `format('.2s')` to abbreviate large numbers. A tooltip appears on each bar through an SVG `<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