🌍 Public
Viewing a saved revision (read-only)
17fe7197337e4b8cad62793190f9b5b9
Activity 6_Task 1
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.