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