🌍 Public
Viewing a saved revision (read-only)
36e5d08bf1cd40ca8c4989c2a5e3d4cc
D3.js Line Chart
This line chart visualizes the population of India from 1950 to 2020, using a steelblue stroke to trace the upward trend over time. The chart loads data from a local CSV file using `d3.csv`, maps the years to a `d3.scaleBand` on the x-axis and population values to a `d3.scaleLinear` on the y-axis, and renders the line as an SVG path with `d3.line`. Axes are added via `d3.axisBottom` and `d3.axisLeft`, with labels for "Year" and "Population".
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.