Area with Missing Data
✓ Published0🌍 Public
深深度碎片
Last edited Aug 4, 2016
Created on Aug 4, 2016
This example demonstrates how D3 can represent time-series data with gaps, showing a jagged line and shaded area that skip missing points entirely. The synthetic dataset deliberately inserts null values every fifth sample, and the area and line generators use the `.defined()` method to interpolate across those gaps. The visualization renders as SVG using `d3.line()` and `d3.area()` with a Cartesian coordinate system built from `d3.scaleLinear()`, plus circular dots marking only the valid data points. Axes are added via `d3.axisBottom()` and `d3.axisLeft()`.
AI-generated descriptionA demonstration of area.defined.
forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/3035090'>Area with Missing Data</a>
gpl-3.0 Licensed