pbeshai/d3-line-chunked

Option to have end points extend from last point with value if they are undefined (`extendEnds`)

Closed this issue · 1 comments

If the start point is undefined, draw a dotted line flat to the first defined data point.
If the end point is undefined, draw a dotted line from the last defined data point.

Make this a configurable option as extendEnds (boolean).

Turns out a boolean is insufficient, since we do not know the xMin and xMax to extend it to. Instead extendEnds takes [xMin, xMax].