Activity-6 Q1.1
✓ Published0🌍 Public
This example shows a horizontal bar chart of population data for the year 2000 in ten countries, with the bars scaled linearly by population and labeled on a band scale for country names. The visualization is built with React and D3 v5, using `scaleBand`, `scaleLinear`, `max`, and `format` for axes and tick labels. It renders as an SVG, loads data from a CSV file via `d3.csv`, and includes tooltips on each bar 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