Activity 6_Task 1
✓ Published0🌍 Public
This example displays a horizontal bar chart showing the 2020 population estimates for 30 countries, sourced from a CSV file hosted in a GitHub repository. The chart uses D3 v5 to load and parse the data, as well as to create the scales and tick formatting, which converts values from gigabytes to billions. The visualization is rendered in React, with the bars and axes built using SVG elements and custom components for the bottom and left axes, along with tooltips showing the formatted population values.
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