Q1_Activity8_VaishaliKonda
✓ Published0🌍 Public
A bar chart displays the population of ten countries in the year 2000, sourced from a CSV file loaded via d3.csv. The visualization uses React to render SVG elements, with d3.scaleBand and d3.scaleLinear mapping categorical country names and quantitative population values. The d3.format function formats tick labels using SI notation, replacing 'G' with 'B'. Tooltips, implemented with SVG `<title>` elements, show the exact population value on hover. Axes and bars are styled with CSS, and the chart is rendered within a fixed 960x500 viewport.
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