π Public
Actvity6_question1
This visualization shows population figures for ten countries in the year 2000 using a horizontal bar chart rendered with React and SVG. The code loads CSV data from a GitHub repository via d3.csv, processes the population column with a custom row function, and scales the bars using d3.scaleBand and d3.scaleLinear. Axis components generate ticks and labels, while the Marks component renders each bar with a tooltip showing the formatted population value.
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.