function render(svg) {
let svgSelection = d3.select(svg);
svgSelection.selectAll('path')
.data(california)
.join('path')
.attr('d', f => path(f))
.attr('stroke', 'grey')
.attr('fill', 'none');
svgSelection.selectAll('circle')
.data(timeData)
.join('circle')
.attr('cx', d => projection([d.lng, d.lat])[0])
.attr('cy', d => projection([d.lng, d.lat])[1])
.attr('fill', d => colorPM1(d.pm1))
.attr('r', 3);
return svgSelection;
}