Utility to export d3 items stats to a more user-friendly format