Public
Edited
Apr 26, 2023
Insert cell
dat = [
{name: 'Paul', city: 'Denver'},
{name: 'Robert', city: 'Denver'},
{name: 'Ian', city: 'Boston'},
{name: 'Cobus', city: 'Boston'},
{name: 'Ayodele', city: 'New York'},
{name: 'Mike', city: 'New York'},
]
Insert cell
Insert cell
Insert cell
dropdown1
Insert cell
Insert cell
Insert cell
dropdown2
Insert cell
temp_data = dat.filter(function(x) {
return x.city.includes(dropdown1) && x.name.includes(dropdown2);
});
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more