A demonstration of how to filter out missing data, leveraging Array.filter and isNaN.
const filteredData = data.filter( (d) => !(isNaN(xValue(d)) || isNaN(yValue(d))), );