Export Image
Export Code

Scatter Plot with Missing Data

Curran Kelleher

Last edited May 02, 2024
Created on Jan 29, 2024

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))),
);
MIT Licensed