Skip to main content
100%

Simple Line Graph v6

✓ Published0🌍 Public
Dd3noob
Last edited Sep 11, 2020
Created on Sep 11, 2020

A simple line graph plots daily closing values over time, with the y-axis scaled from zero to the data maximum and dates parsed using `d3.timeParse`. Rendered as an SVG, the chart uses `d3.scaleTime` and `d3.scaleLinear` for axes, while `d3.line` generates the steelblue path. The code loads a CSV file via `d3.csv` and displays the result with `d3.axisBottom` and `d3.axisLeft`, serving as a minimal D3 v6 template.

AI-generated description

This is a simple line graph written with d3.js v6 and based on @mbostock's example here.

This simple graph is designed to be used as a starting point for further development as part of documenting an update to the book D3 Tips and Tricks to version 6 of d3.js.

mit Licensed

Similar vizzes