Unlisted
Edited
Jul 9
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
visiblePointsOfInterest = pointsOfInterest
.filter((val) => {
let filterDate = new Date();
filterDate.setDate(filterDate.getDate() - daysAgo);
return new Date(val.date) >= filterDate;
})
.reduce((acc, val) => {
return [
...acc,
{
...val
}
];
}, [])
.sort((a, b) => a.date > b.date)
Insert cell
Insert cell
import { PlotMatrix } with { data } from "@observablehq/autoplot-matrix"
Insert cell
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