graphic = {
const document = new DOMParser().parseFromString(text, "image/svg+xml");
const svg = d3.select(document.documentElement).remove();
const path = svg.selectAll("path[fill='#bbb']");
const timer = d3.timer(() =>
path.attr("fill", d3.interpolateRainbow(Date.now() / 10000))
);
invalidation.then(() => timer.stop());
return svg.node();
}