map_filter = {
d3.select(map).selectAll("circle")
.attr("r", d => d.datum.properties.mag)
.attr("fill-opacity", 0.5)
.attr("stroke", "#f00")
.attr("visibility", d => (d.datum.properties.time > chart[0].getTime()
&& d.datum.properties.time < chart[1].getTime())
? "visible" : "hidden");
const n = d3.select(map).selectAll("circle")
.filter(function() { return d3.select(this).attr("visibility") == "visible" })
.nodes().length;
return md`${n} out of ${my_data.length} earthquakes are visible on the map.`
}