India Population Trend Analysis
✓ Published0🌍 Public
This example visualizes India’s population growth from 2000 to 2010 as a line chart. It plots yearly population values from a local CSV file, with a time-scaled x-axis and a linear y-axis showing billions. The code uses D3 v7 loaded via UNPKG, along with `d3.csv`, `d3.scaleTime`, `d3.scaleLinear`, and `d3.line` to render the SVG path. Axes are appended with `d3.axisBottom` and `d3.axisLeft`, and the chart includes labeled axes for year and population.
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