Kevin and Shan’s

Field Guide to Working with Data in the Wild

Filtering

Return a new dataset that has only the elements that match given criteria.

var filteredData = data.filter(function(d) { return d.year > 2000; });