Simple graph with filled area in v7
✓ Published0🌍 Public
Dd3noob
Last edited Jun 18, 2021
Created on Jun 18, 2021
This example shows a time-series line graph of stock closing prices, with the area beneath the line filled in light blue to emphasize the trend. The chart uses an SVG rendered with D3 v7, and reads its data from a local CSV file. It defines an `d3.area` generator for the filled region and an `d3.line` generator for the stroke, both mapping dates to an `d3.scaleTime` x-axis and values to an `d3.scaleLinear` y-axis. The axes are drawn with `d3.axisBottom` and `d3.axisLeft`.
AI-generated descriptionThis is a simple graph demonstrating the addition of a filled area in conjunction with a line graph.
This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 7 of d3.js.
mit Licensed