(untested) data endpoint for d3 chart