opinionsToGraph outputs a d3-friendly graph