Skip to main content
100%

India Population Trend Analysis

✓ Published0🌍 Public
LLokesh Chennuru
Last edited Dec 8, 2023
Created on Dec 8, 2023

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes