based on /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)
Modified http://d3js.org/d3.v3.min.js to a secure url
https://d3js.org/d3.v3.min.js