🌍 Public
activity 6_Task 1
This bar chart displays the population of ten countries in the year 2000, using horizontal bars sorted along a categorical y-axis and a linear x-axis. The visualization loads CSV data from a GitHub repository, processes it with the `csv` function from `d3`, and renders the chart as SVG within a React component. Axes are built with `scaleBand` and `scaleLinear`, while tick formatting uses the `format` function to abbreviate large numbers.
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
Comments
Sign in to join the discussion.