Skip to main content
100%

D3.js Line Chart

✓ Published22🌍 Public
VVenkat-Dhulipalla
Last edited Mar 25, 2023
Created on Mar 25, 2023

This D3.js line chart visualizes the growth in customer numbers from 2000 to 2010 using the Iris Dataset, rendering a single steel-blue line within an SVG canvas. The code employs `d3.csv` to load the data, `scaleBand` for the categorical year axis, and `scaleLinear` for the numeric customer axis. Axes are added via `d3.axisBottom` and `d3.axisLeft`, while the line itself is drawn with a `path` element using `d3.line`. The chart includes labeled axes and uses a custom stylesheet for formatting.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes