d3 line chart with shapes code example Example: d3 line chart with shapes lineGenerator .defined(function(d) { return d !== null; });