Added mapreduce for linechart