Skip to main content
100%

Simple line graph with v4

✓ Published0🌍 Public
Dd3noob
Last edited Jul 3, 2016
Created on Jul 1, 2016

This simple line graph displays the daily closing value of a stock over a month, using data from a CSV file. The SVG chart is built with D3.js v4, employing `d3.scaleTime` and `d3.scaleLinear` to map dates and prices, while `d3.line` generates the path. The axes are drawn with `d3.axisBottom` and `d3.axisLeft`, and the line is styled with a steel-blue stroke.

AI-generated description

This is a simple line graph written with d3.js v4 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 4 of d3.js.

Similar vizzes