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