🌍 Public
Activity 7
This example displays a horizontal bar chart of the 2010 population for ten countries, sourced from a CSV file via a URL. Built with React and D3 v5, it uses a linear x-scale for population values, formatted with SI prefixes (e.g., "B" for billions), and a band scale for country names. The SVG rendering includes custom axes and tooltips that show the formatted population value on hover.
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.