based on http://bl.ocks.org/mbostock/3310323 this shows how you put gaps in your line for missinng data – here denoted by randomly inserting NaN values (so you may need to refresh the page if you don’t see any breaks)