{
const svg = html`<svg width=${width} height=${svgHeight}></svg>`
d3.select(svg).selectAll("path")
.data(movies).enter().append("path")
.attr("transform", (d, i) => `translate(${calculateGridPos(i)})`)
.attr("d", d => pathObj[d.rated] || pathObj.PG)
.attr("fill", d => colorObj[d.genres[0]] || colorObj.Other)
.attr("fill-opacity", 0.5)
.attr("stroke", d => colorObj[d.genres[0]] || colorObj.Other)
.attr("stroke-width", 2)
return scrollSVG(svg)
}