Skip to main content
100%

D3.js Line Chart

✓ Published0🌍 Public
Ssreesushmav
Last edited Mar 25, 2023
Created on Mar 25, 2023
Forked from 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 description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes