CSV generator for graphing