Fork of Varun_6_Question1
✓ Published0🌍 Public
This example displays a horizontal bar chart of 2010 population data for ten countries, loaded from a remote CSV file. The visualization uses React for component structure and D3 v5 scales (scaleBand, scaleLinear) to map country names and population values to SVG positions. Bars are rendered as SVG rectangles with native tooltips, while styled tick marks and axis labels annotate the chart. The data undergoes a preprocessing step that multiplies the 2000 population column by 1000 to derive the plotted 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.
MIT Licensed