Simple graph with filled area in v4
A simple line graph displays ten random data points, with the area beneath the line filled in light steel blue. The chart uses d3.v4’s `d3.area` and `d3.line` generators, with `d3.scaleLinear` for both axes and `d3.axisBottom` and `d3.axisLeft` for ticks. The SVG paths are appended to a group, and the data is generated inline as an array of random integers. The fill extends from the baseline to the line, and the line itself is styled as a solid steelblue stroke.
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 v4 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 4 of d3.js.
forked from <a href='http://bl.ocks.org/d3noob/'>d3noob</a>'s block: <a href='http://bl.ocks.org/d3noob/119a138ef9bd1d8f0a8d57ea72355252'>Simple graph with filled area in v4</a>