🌍 Public
Viewing a saved revision (read-only)
2d4097d8dd6041d397a22276c6d5087a
Task8Tutorial_1
This example shows a horizontal bar chart of 2020 population estimates for 30 countries, with bars colored light green and a blue axis line. The React application loads data from a CSV file using D3’s `csv` function, then renders the visualization as SVG. It uses `scaleBand` for the y-axis country categories and `scaleLinear` for the x-axis population values, with a custom tick format that converts large numbers into billions. Tooltips appear on hover via SVG `<title>` elements, and the axis labels are styled with Poppins font.
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.