Activity 6_Task 1
✓ Published1🌍 Public
This example displays a horizontal bar chart of 2020 population data for thirty countries, sourced from a CSV file hosted on GitHub. The visualization is rendered using React and SVG, with D3 v5 utilities managing the layout. Specifically, code imports `scaleBand`, `scaleLinear`, `max`, and `format` from D3 to position bars and axes. The chart uses a linear x-scale for population values and a band scale for countries, with tick labels and axis text custom-styled. React's `useData` hook asynchronously fetches and processes the data before rendering.
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