Simple graph with table in v5
A simple line graph displays closing stock prices over time, with a data table shown below it that lists the same date and close values. Built with d3.v5, the example uses `d3.csv` to load the data, `d3.timeParse` to format dates, and `d3.line` with `d3.scaleTime` and `d3.scaleLinear` to render the SVG path. Axis labels are generated via `d3.axisBottom` and `d3.axisLeft`. The table is constructed dynamically using a custom `tabulate` function that appends HTML rows and cells.
AI-generated descriptionThis is a simple graph demonstrating the addition of a table with a graph (open in full screen to see the table). This was written using d3.js v5 and is a follow on to the simple line graph example here.
This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 5 of d3.js.