Simple graph with filled area in v5
✓ Published0🌍 Public
Dd3noob
Last edited Nov 26, 2019
Created on Nov 26, 2019
This example shows a time series line graph with a filled area beneath it, displaying stock close prices over a month. The chart uses D3 v5 with SVG rendering, where the area is generated by the `d3.area` API and the line by `d3.line`. Data is loaded from a CSV file and parsed with `d3.timeParse`. Axes are added using `d3.axisBottom` and `d3.axisLeft`, with scales defined via `d3.scaleTime` and `d3.scaleLinear`.
AI-generated descriptionThis is a simple graph demonstrating the addition of a filled area in conjunction with a line graph. This was written using d3.js v5 and is a follow on to the simple 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.
mit Licensed