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