Can we find another way to feed data to d3 here? Either a separate endpoint, or inline it on the initial page render, I suppose.