🌍 Public
Q1.2
This example presents a horizontal bar chart of population data for 20 countries from 2010. The chart uses green bars, with the country names on the y-axis and population figures on the x-axis, formatted in billions. Built with React and D3 v5, it uses `scaleBand` and `scaleLinear` for scaling, and `csv` to fetch data from a remote GitHub source. SVG rendering displays the axes and marks.
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.